-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 potential NullReferenceException #872
Fix potential NullReferenceException #872
Conversation
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.
Changes seem to be in line with others around.
I wonder if audioStream
should ever be null
here, maybe its being null is a bug...
Oh, and @WillWill56, I don't remember you adding yourself to CONTRIBUTORS.md
yet... please do! 😉
Oh whoops, how should I do that? Yeah, seems like working on a buggy plugin is the main reason I found this bug, will probably have to fix something related to this in the tunein plugin very soon. |
https://jellyfin.readthedocs.io/en/latest/contributor-docs/contributing-code/#contributorsmd |
Guess I missed that. Include the change in this pull request? |
Either in this one or in another about HttpClient, whatever suits you more. |
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.
LGTM
Changes
Added in a missing null-conditional operator (?) to prevent a NullReferenceException from being thrown.
Issues
Fixes #871