Skip to content

Check for 'null' arguments in HttpContextServerVariableExtensions.GetServerVariable #47828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

MackinnonBuck
Copy link
Member

Check for null arguments in HttpContextServerVariableExtensions.GetServerVariable

We received a bug report where a customer got a NRE with this method being the source. This PR makes a nicer exception get thrown instead.

…ServerVariable

We received a bug report where a customer got a NRE with this method being the source. This PR makes a nicer exception get thrown instead.
@MackinnonBuck
Copy link
Member Author

Pardon the close/reopen shenanigans, that was to make the license/cla check re-run (it never reported a status initially).

@MackinnonBuck MackinnonBuck merged commit d07f377 into main Apr 21, 2023
@MackinnonBuck MackinnonBuck deleted the mbuck/add-throw-if-null branch April 21, 2023 23:32
@ghost ghost added this to the 8.0-preview4 milestone Apr 21, 2023
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants