From b1da9a193413bd6d3e68035785a5fbd5f20a0023 Mon Sep 17 00:00:00 2001 From: ta264 Date: Fri, 14 Jan 2022 19:34:52 +0000 Subject: [PATCH] Fixed: Null reference setting download history for unmapped downloads --- src/NzbDrone.Core/Download/History/DownloadHistoryService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs index f3b06e922..d5e0b2f8b 100644 --- a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs +++ b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs @@ -174,7 +174,7 @@ namespace NzbDrone.Core.Download.History var history = new DownloadHistory { EventType = DownloadHistoryEventType.DownloadImportIncomplete, - AuthorId = message.TrackedDownload.RemoteBook?.Author.Id ?? 0, + AuthorId = message.TrackedDownload.RemoteBook?.Author?.Id ?? 0, DownloadId = message.TrackedDownload.DownloadItem.DownloadId, SourceTitle = message.TrackedDownload.DownloadItem.OutputPath.ToString(), Date = DateTime.UtcNow,