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 playing empty item set #4837

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

dmitrylyzo
Copy link
Contributor

Changes
Return from the function if no items are provided.

It shows This client isn't compatible with the media and the server isn't sending a compatible media format. and the loading remains unhidden. So we need appropriate error handling.

Issues
Runtime error: accessing items[0] from an empty array.

@dmitrylyzo dmitrylyzo added bug Something isn't working stable backport Backport into the next stable release labels Oct 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@thornbill thornbill merged commit eb7fb6b into jellyfin:release-10.8.z Oct 4, 2023
14 checks passed
@jellyfin-bot jellyfin-bot removed the stable backport Backport into the next stable release label Nov 8, 2023
thornbill pushed a commit that referenced this pull request Nov 8, 2023
Fix playing empty item set

Original-merge: eb7fb6b

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
@dmitrylyzo dmitrylyzo deleted the fix-noitem-play branch November 29, 2023 11:10
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.

3 participants