Skip to content

The Free Software Media System - Server Backend & API

add null check to SyncJobProcessor

Luke Pulverentic3eb571d1de4
diff --git a/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs b/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs
index e2e54e0569..7086735c09 100644
--- a/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs
+++ b/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs
@@ -308,6 +308,11 @@ namespace MediaBrowser.Server.Implementations.Sync
throw new ArgumentException("Unrecognized category: " + category);
}
+ if (parent == null)
+ {
+ return new List<BaseItem>();
+ }
+
query.User = user;
var result = await parent.GetItems(query).ConfigureAwait(false);