mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Null reference exception in CompletedDownloadService
Fixes Sentry LIDARR-1GW
This commit is contained in:
@@ -176,6 +176,16 @@ namespace NzbDrone.Core.Test.Download
|
|||||||
AssertNoAttemptedImport();
|
AssertNoAttemptedImport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_not_throw_if_remotealbum_is_null()
|
||||||
|
{
|
||||||
|
_trackedDownload.RemoteAlbum = null;
|
||||||
|
|
||||||
|
Subject.Process(_trackedDownload);
|
||||||
|
|
||||||
|
AssertNoAttemptedImport();
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_mark_as_imported_if_all_tracks_were_imported()
|
public void should_mark_as_imported_if_all_tracks_were_imported()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ namespace NzbDrone.Core.Download
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var artist = trackedDownload.RemoteAlbum.Artist;
|
var artist = trackedDownload.RemoteAlbum?.Artist;
|
||||||
|
|
||||||
if (artist == null)
|
if (artist == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user