Skip to content

Guard against null reference in AddImports - #1005

Merged
jmarolf merged 1 commit into
dotnet:masterfrom
jmarolf:AddImportCrash
Mar 4, 2015
Merged

Guard against null reference in AddImports#1005
jmarolf merged 1 commit into
dotnet:masterfrom
jmarolf:AddImportCrash

Conversation

@jmarolf

@jmarolf jmarolf commented Mar 4, 2015

Copy link
Copy Markdown
Contributor

Previously we weren't properly guarding against null reference exceptions when the symbol we try to add Imports/usings for binds correctly.

Fixes #794

Previously we weren't properly guarding against null reference
exceptions when the symbol we try to add imports/usings for binds
correctly.
@jmarolf

jmarolf commented Mar 4, 2015

Copy link
Copy Markdown
Contributor Author

@srivatsn @tmeschter @shyamnamboodiripad @mavasani @heejaechang @JohnHamby Could you take a look, please?

@heejaechang

Copy link
Copy Markdown
Contributor

👍

1 similar comment
@shyamnamboodiripad

Copy link
Copy Markdown
Contributor

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code could be more compact and arguably no less readable with a ?: operator.

@msJohnHamby

Copy link
Copy Markdown
Contributor

I sign off.

jmarolf added a commit that referenced this pull request Mar 4, 2015
Guard against null reference in AddImports
@jmarolf
jmarolf merged commit a7d399c into dotnet:master Mar 4, 2015
@jmarolf
jmarolf deleted the AddImportCrash branch March 4, 2015 14:00
dibarbet pushed a commit that referenced this pull request Aug 18, 2026
Update dependencies to remove implicit Newtonsoft.Json 12.0.2 dependency
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.

NRE at Microsoft.CodeAnalysis.CodeFixes.AddImport.AbstractAddImportCodeFixProvider.<GetNamespacesForMatchingExtensionMethodsAsync>

6 participants