Fixed: Null reference exception in CompletedDownloadService

Fixes Sentry LIDARR-1GW
pull/6/head
Tom Andrews 5 years ago committed by ta264
parent 1c7ded859b
commit 15425a45a3

@ -176,6 +176,16 @@ namespace NzbDrone.Core.Test.Download
AssertNoAttemptedImport();
}
[Test]
public void should_not_throw_if_remotealbum_is_null()
{
_trackedDownload.RemoteAlbum = null;
Subject.Process(_trackedDownload);
AssertNoAttemptedImport();
}
[Test]
public void should_mark_as_imported_if_all_tracks_were_imported()
{

@ -80,7 +80,7 @@ namespace NzbDrone.Core.Download
return;
}
var artist = trackedDownload.RemoteAlbum.Artist;
var artist = trackedDownload.RemoteAlbum?.Artist;
if (artist == null)
{

Loading…
Cancel
Save