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

Check if fragment is null in PlaybackController.play #3475

Conversation

nielsvanvelzen
Copy link
Member

We already had a lot of null checks in this function but some branches still tried to use mFragment causing a NPE. Refactored the function to check for null once in the top and return if is it null.

Changes

Check if fragment is null in PlaybackController.play and noop if it is.

Issues

Fixes #3471

@nielsvanvelzen nielsvanvelzen added bug Something isn't working backportable Change may be backported to a point release (remove label once cherrypicked) labels Mar 30, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.17.0 milestone Mar 30, 2024
@nielsvanvelzen nielsvanvelzen merged commit d22ab69 into jellyfin:master Mar 30, 2024
6 checks passed
@nielsvanvelzen nielsvanvelzen deleted the playback-controller-fraqgment-null branch March 30, 2024 20:24
nielsvanvelzen added a commit that referenced this pull request Apr 7, 2024
* Check if fragment is null in PlaybackController.play

* Update logging levels in PlaybackController

(cherry picked from commit d22ab69)
@nielsvanvelzen nielsvanvelzen modified the milestones: v0.17.0, v0.16.8 Apr 7, 2024
@nielsvanvelzen nielsvanvelzen removed the backportable Change may be backported to a point release (remove label once cherrypicked) label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when opening newer Library Items (TV Show/Movie)
2 participants