Skip to content

Fix null reference in BindBase#36081

Merged
jcouv merged 2 commits intodotnet:masterfrom
jcouv:bind-base
May 31, 2019
Merged

Fix null reference in BindBase#36081
jcouv merged 2 commits intodotnet:masterfrom
jcouv:bind-base

Conversation

@jcouv
Copy link
Copy Markdown
Member

@jcouv jcouv commented May 31, 2019

Fixes #29933

@jcouv jcouv added this to the 16.2.P3 milestone May 31, 2019
@jcouv jcouv requested a review from a team as a code owner May 31, 2019 05:08
@jcouv jcouv self-assigned this May 31, 2019
hasErrors = true;
}
else if (this.ContainingType is null || (node.Parent.Kind() != SyntaxKind.SimpleMemberAccessExpression && node.Parent.Kind() != SyntaxKind.ElementAccessExpression))
else if (this.ContainingType is null || (node.Parent != null && node.Parent.Kind() != SyntaxKind.SimpleMemberAccessExpression && node.Parent.Kind() != SyntaxKind.ElementAccessExpression))
Copy link
Copy Markdown
Contributor

@AlekseyTs AlekseyTs May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node.Parent != null [](start = 53, length = 19)

I think we should get into this if when parent is null, standalone base expression is not legal #Closed

@AlekseyTs
Copy link
Copy Markdown
Contributor

AlekseyTs commented May 31, 2019

Done with review pass (iteration 1) #Closed

Copy link
Copy Markdown
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (iteration 2)

@jcouv jcouv merged commit 0735cf7 into dotnet:master May 31, 2019
@jcouv jcouv deleted the bind-base branch May 31, 2019 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSharpReplaceDocCommentTextWithTagCodeRefactoringProvider

3 participants