Explorar o código

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

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
Shadowghost %!s(int64=2) %!d(string=hai) anos
pai
achega
eba24d188d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);