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

Commit 86c2927

Browse files
committed
Fix NullReferenceException in CaretReferenceHighlightRenderer.ColorizeMatch().
1 parent 844d7f2 commit 86c2927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void ColorizeMatch(AstNode node, ResolveResult result)
188188
{
189189
var identifierNode = FindReferences.GetNodeToReplace(node);
190190
TextLocation start, end;
191-
if (!identifierNode.IsNull) {
191+
if (identifierNode != null && !identifierNode.IsNull) {
192192
start = identifierNode.StartLocation;
193193
end = identifierNode.EndLocation;
194194
}

0 commit comments

Comments
 (0)