Skip to content

Commit

Permalink
Fixed incorrect null check
Browse files Browse the repository at this point in the history
localResolveResult was checked twice, but resolveResult null check was skipped.
  • Loading branch information
Alex Newman committed Jan 2, 2016
1 parent bf10387 commit f1f59d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public override void VisitIndexerExpression(IndexerExpression indexerExpression)
if (localResolveResult == null)
return;
var resolveResult = context.Resolve(indexerExpression);
if (localResolveResult == null)
if (resolveResult == null)
return;
var parent = indexerExpression.Parent;
while (parent is ParenthesizedExpression)
Expand Down

0 comments on commit f1f59d2

Please sign in to comment.