mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
add null check to SyncJobProcessor
This commit is contained in:
parent
156a047cfe
commit
c3eb571d1d
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue