Skip to content
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

Fix NullReferenceException in HotChocolateAzureFunctionServiceCollectionExtensions #5581

Conversation

nicolaskuster
Copy link
Contributor

@nicolaskuster nicolaskuster commented Dec 4, 2022

With the AspNetCore Middleware Refinements commit a PathString parameter was added to the constructor of the HttpGetMiddleware. Unfortunately, the .UseMiddleware<HttpGetMiddleware>() usage in the HotChocolateAzureFunctionServiceCollectionExtensions was not updated. So the execution of an Azure Function throws a NullReferenceException as mentioned in #5539 and #5580.
This PR adds the missing PathString in the HotChocolateAzureFunctionServiceCollectionExtensions and fixes the NullReferenceException.

Let me know if this PR needs any further adjustments.

Closes #5539
Closes #5580

@CLAassistant
Copy link

CLAassistant commented Dec 4, 2022

CLA assistant check
All committers have signed the CLA.

@michaelstaib
Copy link
Member

michaelstaib commented Dec 20, 2022

@nicolaskuster thanks for your contribution!

@michaelstaib michaelstaib merged commit 47c05c1 into ChilliCream:main Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants