Skip to content

Handle potential null in extension lookup (#80621)#81740

Merged
333fred merged 1 commit intodotnet:release/dev18.0from
333fred:backport
Dec 22, 2025
Merged

Handle potential null in extension lookup (#80621)#81740
333fred merged 1 commit intodotnet:release/dev18.0from
333fred:backport

Conversation

@333fred
Copy link
Copy Markdown
Member

@333fred 333fred commented Dec 17, 2025

There are specific scenarios where applicability will remove a symbol from lookup entirely; no error, just silent removal. This introduces a null that consumers were not expecting and caused an NRE. I've handled that NRE here and annotated the API. Fixes https://developercommunity.visualstudio.com/t/NRE-in-Roslyn-v500-225451107/10979295.

(cherry picked from commit 16883a5)

There are specific scenarios where applicability will remove a symbol from lookup entirely; no error, just silent removal. This introduces a `null` that consumers were not expecting and caused an NRE. I've handled that NRE here and annotated the API. Fixes https://developercommunity.visualstudio.com/t/NRE-in-Roslyn-v500-225451107/10979295.

(cherry picked from commit 16883a5)
@333fred 333fred requested a review from a team as a code owner December 17, 2025 21:16
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 (commit 1)

@333fred
Copy link
Copy Markdown
Member Author

333fred commented Dec 22, 2025

Approved by tactics on 12/20/25.

@333fred 333fred merged commit 8c2bdbc into dotnet:release/dev18.0 Dec 22, 2025
24 checks passed
@333fred 333fred deleted the backport branch December 22, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants