add null check to SyncJobProcessor

This commit is contained in:
Luke Pulverenti 2016-02-29 23:24:14 -05:00
parent 156a047cfe
commit c3eb571d1d

View File

@ -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);