From 4ee1426757e05ea489450c665f2b128a660736bc Mon Sep 17 00:00:00 2001 From: softworkz Date: Fri, 13 Jan 2017 03:20:25 +0100 Subject: [PATCH] Graciously handle transfer status reporting for SyncJobItems --- Emby.Server.Implementations/Sync/SyncManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Emby.Server.Implementations/Sync/SyncManager.cs b/Emby.Server.Implementations/Sync/SyncManager.cs index 2687eaefc1..418d42c9a6 100644 --- a/Emby.Server.Implementations/Sync/SyncManager.cs +++ b/Emby.Server.Implementations/Sync/SyncManager.cs @@ -560,6 +560,12 @@ namespace Emby.Server.Implementations.Sync { var jobItem = _repo.GetJobItem(id); + if (jobItem == null) + { + _logger.Debug("ReportSyncJobItemTransferred: SyncJobItem {0} doesn't exist anymore", id); + return; + } + jobItem.Status = SyncJobItemStatus.Synced; jobItem.Progress = 100;