Fix null ref in the parser (dotnet/aspnetcore-tooling#103)

\n\nCommit migrated from 8e1629b60b
This commit is contained in:
Ajay Bhargav Baaskaran 2019-01-07 20:18:39 -08:00 committed by GitHub
parent 32a8a7485e
commit f87d9b5335
1 changed files with 1 additions and 0 deletions

View File

@ -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))
{