add null check to SyncJobProcessor
This commit is contained in:
parent
156a047cfe
commit
c3eb571d1d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user