Skip to content

The Free Software Media System - Server Backend & API

Update Emby.Server.Implementations/SyncPlay/Group.cs

pokreman06c08b1a4595da
diff --git a/Emby.Server.Implementations/SyncPlay/Group.cs b/Emby.Server.Implementations/SyncPlay/Group.cs
index 1142a2f0af..38a0018a70 100644
--- a/Emby.Server.Implementations/SyncPlay/Group.cs
+++ b/Emby.Server.Implementations/SyncPlay/Group.cs
@@ -207,7 +207,7 @@ namespace Emby.Server.Implementations.SyncPlay
{
var item = _libraryManager.GetItemById(itemId);
- if (!item?.IsVisibleStandalone(user) ?? true)
+ if (item is null || !item.IsVisibleStandalone(user))
{
return false;
}