aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/SyncPlay/Group.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/SyncPlay/Group.cs')
-rw-r--r--Emby.Server.Implementations/SyncPlay/Group.cs2
1 files changed, 1 insertions, 1 deletions
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;
}