add null check to SyncJobProcessor

pull/702/head
Luke Pulverenti 9 years ago
parent 156a047cfe
commit c3eb571d1d

@ -308,6 +308,11 @@ namespace MediaBrowser.Server.Implementations.Sync
throw new ArgumentException("Unrecognized category: " + category); throw new ArgumentException("Unrecognized category: " + category);
} }
if (parent == null)
{
return new List<BaseItem>();
}
query.User = user; query.User = user;
var result = await parent.GetItems(query).ConfigureAwait(false); var result = await parent.GetItems(query).ConfigureAwait(false);

Loading…
Cancel
Save