浏览代码

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

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
Shadowghost 2 年之前
父节点
当前提交
eba24d188d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,
                     Name = name,
                     Path = path,
                     Path = path,
                     OwnerUserId = options.UserId,
                     OwnerUserId = options.UserId,
-                    Shares = options.Shares
+                    Shares = options.Shares ?? Array.Empty<Share>()
                 };
                 };
 
 
                 playlist.SetMediaType(options.MediaType);
                 playlist.SetMediaType(options.MediaType);