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

Null safe check if isBackgroundPlaybackEnabled property is set #559

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

strangesource
Copy link
Contributor

Description

isBackgroundPlaybackEnabled was checked in an unsafe way which caused attaching a player to a view to crash if isBackgroundPlaybackEnabled was not set.

Changes

  • make isBackgroundPlaybackEnabled check null safe

Checklist

  • 🗒 CHANGELOG entry

@strangesource strangesource self-assigned this Nov 13, 2024
@strangesource strangesource marked this pull request as ready for review November 13, 2024 13:52
@strangesource strangesource requested a review from a team as a code owner November 13, 2024 13:52
@strangesource strangesource removed the request for review from a team November 13, 2024 13:53
@strangesource
Copy link
Contributor Author

@123mpozzi is it fine that the property is not set in this scenario or do we have to have a closer look why it is unset?

Copy link
Contributor

@123mpozzi 123mpozzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!! 💪
The flag should absolutely be null safe

CHANGELOG.md Show resolved Hide resolved
@strangesource strangesource merged commit f8e6a26 into development Nov 13, 2024
3 checks passed
@strangesource strangesource deleted the untracked/fix-autoplay-causing-exception branch November 13, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants