mirror of
https://github.com/Radarr/Radarr
synced 2026-01-14 11:33:17 +01:00
Fixed: Null reference exception in CompletedDownloadService
Fixes Sentry LIDARR-1GW
This commit is contained in:
parent
1c7ded859b
commit
15425a45a3
2 changed files with 11 additions and 1 deletions
|
|
@ -176,6 +176,16 @@ public void should_not_process_if_output_path_is_empty()
|
|||
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 @@ public void Process(TrackedDownload trackedDownload, bool ignoreWarnings = false
|
|||
return;
|
||||
}
|
||||
|
||||
var artist = trackedDownload.RemoteAlbum.Artist;
|
||||
var artist = trackedDownload.RemoteAlbum?.Artist;
|
||||
|
||||
if (artist == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue