mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add null check to sync process
This commit is contained in:
parent
6db7f381dc
commit
cba6c99d54
@ -483,6 +483,11 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||||||
|
|
||||||
private async Task ProcessJobItem(SyncJobItem jobItem, bool enableConversion, IProgress<double> progress, CancellationToken cancellationToken)
|
private async Task ProcessJobItem(SyncJobItem jobItem, bool enableConversion, IProgress<double> progress, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
if (jobItem == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("jobItem");
|
||||||
|
}
|
||||||
|
|
||||||
var item = _libraryManager.GetItemById(jobItem.ItemId);
|
var item = _libraryManager.GetItemById(jobItem.ItemId);
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user