Fixed: Null reference processing import with no download client info

This commit is contained in:
Bogdan 2023-04-21 05:38:28 +03:00 committed by Qstick
parent 933facd50c
commit 9c7b6efe09
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ namespace NzbDrone.Core.History
// history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
history.Data.Add("DroppedPath", message.TrackInfo.Path);
history.Data.Add("ImportedPath", message.ImportedTrack.Path);
history.Data.Add("DownloadClient", message.DownloadClientInfo.Name);
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Name);
history.Data.Add("ReleaseGroup", message.TrackInfo.ReleaseGroup);
_historyRepository.Insert(history);
@ -405,7 +405,7 @@ namespace NzbDrone.Core.History
DownloadId = message.DownloadId
};
history.Data.Add("DownloadClient", message.DownloadClientInfo.Name);
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Name);
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteAlbum?.ParsedAlbumInfo?.ReleaseGroup);
history.Data.Add("Message", message.Message);