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(playhead): safeguard getStallsDetected as stallDetector can be null #4581

Merged

Conversation

koenoe
Copy link
Contributor

@koenoe koenoe commented Oct 14, 2022

player.getStats() currently fails when stallEnabled is set to false in Player configuration. In this PR I've added a safeguard to make sure getStallsDetected returns 0 when stallDetector is null.

@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@avelad avelad added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround labels Oct 15, 2022
@avelad avelad added this to the v4.3 milestone Oct 15, 2022
@theodab theodab merged commit 21ceaca into shaka-project:main Oct 18, 2022
joeyparrish pushed a commit that referenced this pull request Oct 18, 2022
…ll (#4581)

`player.getStats()` currently fails when `stallEnabled` is set to false
in Player configuration. In this PR I've added a safeguard to make sure
`getStallsDetected` returns 0 when `stallDetector` is null.
joeyparrish pushed a commit that referenced this pull request Oct 18, 2022
…ll (#4581)

`player.getStats()` currently fails when `stallEnabled` is set to false
in Player configuration. In this PR I've added a safeguard to make sure
`getStallsDetected` returns 0 when `stallDetector` is null.
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants