The Free Software Media System - Server Backend & API
Backport pull request #12037 from jellyfin/release-10.9.z
Shadowghost529d24ec3086
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.csindex 0fd9175dcc..47ff22c0b3 100644--- a/Emby.Server.Implementations/Playlists/PlaylistManager.cs+++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs@@ -170,8 +170,13 @@ namespace Emby.Server.Implementations.Playlistsprivate List<Playlist> GetUserPlaylists(Guid userId){var user = _userManager.GetUserById(userId);+ var playlistsFolder = GetPlaylistsFolder(userId);+ if (playlistsFolder is null)+ {+ return [];+ }- return GetPlaylistsFolder(userId).GetChildren(user, true).OfType<Playlist>().ToList();+ return playlistsFolder.GetChildren(user, true).OfType<Playlist>().ToList();}private static string GetTargetPath(string path)