mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #12442] [CLOSED] Properly handle null values in PlaylistManager.cs #13197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/12442
Author: @phito
Created: 8/13/2024
Status: ❌ Closed
Base:
master← Head:bugfix/11854-playlistmanager-handle-null-values📝 Commits (2)
095cc80properly handle null values in PlaylistManager.cs01aadddHandle null playlist after update📊 Changes
3 files changed (+42 additions, -14 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
Emby.Server.Implementations/Playlists/PlaylistManager.cs(+38 -11)📝
MediaBrowser.Controller/Playlists/IPlaylistManager.cs(+3 -3)📄 Description
PlaylistManager.cshad a #nullable disable declaration, which lead to NullReferenceException when dependencies are return null values.Changes
Removed
#nullable disableand properly handling null values inPlaylistManager.cs.Issues
529d24ec30#11854 was definitely cause by this, and I believe it has already been fixed by this commit, but it did not address the root cause.
(this is also practice for my first contribution, thanks all of you for this awesome software, I am looking forward to contribute more)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.