Fix null ref in the parser (dotnet/aspnetcore-tooling#103)
\n\nCommit migrated from 8e1629b60b
This commit is contained in:
parent
32a8a7485e
commit
f87d9b5335
|
|
@ -1591,6 +1591,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
var node = tagBlock.Attributes[i];
|
||||
|
||||
if (node is MarkupAttributeBlockSyntax attributeBlock &&
|
||||
attributeBlock.Value != null &&
|
||||
attributeBlock.Value.Children.Count > 0 &&
|
||||
IsTypeAttribute(attributeBlock))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue