Explorar o código

add null check to SyncJobProcessor

Luke Pulverenti %!s(int64=9) %!d(string=hai) anos
pai
achega
c3eb571d1d

+ 5 - 0
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);