From 0ff08dbe8d8a4cd8bf2edf8e6afe792df942e8f7 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 6 Jun 2020 10:19:54 -0700 Subject: [PATCH] Fixed: Error when processing release with files Sonarr is unable to parse --- src/NzbDrone.Core/Download/CompletedDownloadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/CompletedDownloadService.cs b/src/NzbDrone.Core/Download/CompletedDownloadService.cs index e05d866ca..cc417ad3d 100644 --- a/src/NzbDrone.Core/Download/CompletedDownloadService.cs +++ b/src/NzbDrone.Core/Download/CompletedDownloadService.cs @@ -127,7 +127,7 @@ namespace NzbDrone.Core.Download if (importResults.Any(c => c.Result != ImportResultType.Imported)) { var statusMessages = importResults - .Where(v => v.Result != ImportResultType.Imported) + .Where(v => v.Result != ImportResultType.Imported && v.ImportDecision.LocalEpisode != null) .Select(v => new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.LocalEpisode.Path), v.Errors)) .ToArray();