1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-24 06:50:43 +00:00

Fixed: Null Ref on Album Cache Update in TrackedDownloadService.cs

This commit is contained in:
Qstick 2019-09-01 13:21:15 -04:00
parent 91764ec115
commit 3288c21c36

View file

@ -51,7 +51,8 @@ public TrackedDownload Find(string downloadId)
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)
{