Browse Source

Update Emby.Server.Implementations/Playlists/PlaylistManager.cs

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
Shadowghost 2 years ago
parent
commit
eba24d188d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/Playlists/PlaylistManager.cs

+ 1 - 1
Emby.Server.Implementations/Playlists/PlaylistManager.cs

@@ -136,7 +136,7 @@ namespace Emby.Server.Implementations.Playlists
                     Name = name,
                     Path = path,
                     OwnerUserId = options.UserId,
-                    Shares = options.Shares
+                    Shares = options.Shares ?? Array.Empty<Share>()
                 };
 
                 playlist.SetMediaType(options.MediaType);