Skip to content

Change Signature: Fix for NullReferenceException when trying to add parameter with type modifier#45459

Merged
allisonchou merged 2 commits intodotnet:release/dev16.7from
allisonchou:ChangeSignatureModifier
Jun 30, 2020
Merged

Change Signature: Fix for NullReferenceException when trying to add parameter with type modifier#45459
allisonchou merged 2 commits intodotnet:release/dev16.7from
allisonchou:ChangeSignatureModifier

Conversation

@allisonchou
Copy link
Contributor

Fixes #44958.

@allisonchou allisonchou requested a review from a team as a code owner June 25, 2020 19:31
}

if (!IsParameterTypeSyntacticallyValid(VerbatimTypeName))
if (!IsParameterTypeSyntacticallyValid(VerbatimTypeName) || TypeSymbol == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Might as well check null before calling a method

@allisonchou allisonchou changed the base branch from master to release/dev16.7 June 29, 2020 23:11
@allisonchou allisonchou merged commit 908b92b into dotnet:release/dev16.7 Jun 30, 2020
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.

NullReferenceException when adding a parameter with "ref int" type via the new dialog

4 participants