From 3288c21c3639510f6fa1a6e6573b0d2f1be0deed Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 1 Sep 2019 13:21:15 -0400 Subject: [PATCH] Fixed: Null Ref on Album Cache Update in TrackedDownloadService.cs --- .../Download/TrackedDownloads/TrackedDownloadService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs index c175e50fe..7b0ae83df 100644 --- a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs +++ b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs @@ -51,7 +51,8 @@ namespace NzbDrone.Core.Download.TrackedDownloads public void UpdateAlbumCache(int albumId) { - var updateCacheItems = _cache.Values.Where(x => x.RemoteAlbum.Albums.Any(a => a.Id == albumId)).ToList(); + + var updateCacheItems = _cache.Values.Where(x => x.RemoteAlbum != null && x.RemoteAlbum.Albums.Any(a => a.Id == albumId)).ToList(); foreach (var item in updateCacheItems) {