aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Sync/SyncManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Sync/SyncManager.cs')
-rw-r--r--Emby.Server.Implementations/Sync/SyncManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Sync/SyncManager.cs b/Emby.Server.Implementations/Sync/SyncManager.cs
index 2687eaefc..418d42c9a 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;