-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Fix null reference exception for Streaming null object #14004
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
Conversation
Thanks for the PR @Kahbazi! Unfortunately I think the fix is a little more complicated than this. Now if someone passes Also, we should add a test to verify that the scenario is fixed and that we don't regress it in the future! The test would likely be similar to https://github.com/aspnet/AspNetCore/blob/7b0b2980dc6ffb860f2bcd71868d98d85c7d35b6/src/SignalR/server/SignalR/test/HubConnectionHandlerTests.cs#L3524 |
@BrennanConroy If it's possible I'd like to give it another try to fix this.
and the workaround was to put an empty string instead of null
Shouldn't the correct way to use javascript client to just omit the last parameter?
|
Of course! I was just giving suggestions so that we can approve and merge this.
No, in this case their method was
That should be handled by the underlying protocol.
Also handled by the underlying protocol. |
Oh my bad, I was miscounting and thought the last parameter (null) was for cancellation token. Everything makes much more sense now. |
Add unit test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I want to give this a quick local test before merging and give @halter73 a chance to take a look if he'd like.
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove this extra line
Fixes #13191