Fixed: Error when processing release with files Sonarr is unable to parse

This commit is contained in:
Mark McDowall 2020-06-06 10:19:54 -07:00 committed by ta264
parent e7628476f7
commit 894adbe91e

View file

@ -115,7 +115,7 @@ public void Import(TrackedDownload trackedDownload)
{
trackedDownload.State = TrackedDownloadState.ImportFailed;
var statusMessages = importResults
.Where(v => v.Result != ImportResultType.Imported)
.Where(v => v.Result != ImportResultType.Imported && v.ImportDecision.Item != null)
.Select(v => new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.Item.Path), v.Errors))
.ToArray();