mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Fixed: Null Ref on Album Cache Update in TrackedDownloadService.cs
This commit is contained in:
parent
91764ec115
commit
3288c21c36
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ namespace NzbDrone.Core.Download.TrackedDownloads
|
||||||
|
|
||||||
public void UpdateAlbumCache(int albumId)
|
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)
|
foreach (var item in updateCacheItems)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue