Fixed: Null reference setting download history for unmapped downloads

pull/1449/head
ta264 3 years ago
parent 1491788081
commit b1da9a1934

@ -174,7 +174,7 @@ namespace NzbDrone.Core.Download.History
var history = new DownloadHistory var history = new DownloadHistory
{ {
EventType = DownloadHistoryEventType.DownloadImportIncomplete, EventType = DownloadHistoryEventType.DownloadImportIncomplete,
AuthorId = message.TrackedDownload.RemoteBook?.Author.Id ?? 0, AuthorId = message.TrackedDownload.RemoteBook?.Author?.Id ?? 0,
DownloadId = message.TrackedDownload.DownloadItem.DownloadId, DownloadId = message.TrackedDownload.DownloadItem.DownloadId,
SourceTitle = message.TrackedDownload.DownloadItem.OutputPath.ToString(), SourceTitle = message.TrackedDownload.DownloadItem.OutputPath.ToString(),
Date = DateTime.UtcNow, Date = DateTime.UtcNow,

Loading…
Cancel
Save