add null check to sync process

This commit is contained in:
Luke Pulverenti 2016-05-29 14:42:18 -04:00
parent 6db7f381dc
commit cba6c99d54

View File

@ -483,6 +483,11 @@ namespace MediaBrowser.Server.Implementations.Sync
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);
if (item == null)
{