Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 4791b17

Browse files
fix #361: ApplicationException in code editor related to semantic highlighting
1 parent 95b84d4 commit 4791b17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/CSharpSemanticHighlighter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ protected override void Colorize(AstNode node, HighlightingColor color)
412412
if (resolverNode.Role == Roles.Type && resolverNode.Parent is ObjectCreateExpression)
413413
resolverNode = resolverNode.Parent;
414414

415-
if (node is Identifier)
415+
if (node is Identifier && !node.IsNull)
416416
resolverNode.AddAnnotation(node);
417417
if (color != null)
418418
resolverNode.AddAnnotation(color);

0 commit comments

Comments
 (0)