Skip to content

The Free Software Media System - Server Backend & API

fixed logic in HasAccessToQueue. If we receive a null response from IsVisibleStandalone then it should be false

Christopher Youngd6a1c8413c6a
diff --git a/Emby.Server.Implementations/SyncPlay/Group.cs b/Emby.Server.Implementations/SyncPlay/Group.cs
index c2e834ad58..0095ba0a37 100644
--- a/Emby.Server.Implementations/SyncPlay/Group.cs
+++ b/Emby.Server.Implementations/SyncPlay/Group.cs
@@ -206,7 +206,7 @@ namespace Emby.Server.Implementations.SyncPlay
foreach (var itemId in queue)
{
var item = _libraryManager.GetItemById(itemId);
- if (!item.IsVisibleStandalone(user))
+ if (!item?.IsVisibleStandalone(user) ?? false)
{
return false;
}