From 120fb58da7b72e52ef1634d0bc4d52119dc681a3 Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Tue, 29 Jun 2021 13:57:18 -0400 Subject: [PATCH] Add null check when displaying image in form --- FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs | 4 +++- LibationLauncher/LibationLauncher.csproj | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs b/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs index 16e097b7..6b5c2a78 100644 --- a/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs +++ b/FileLiberator/AaxcDownloadDecrypt/DownloadDecryptBook.cs @@ -97,7 +97,9 @@ namespace FileLiberator.AaxcDownloadDecrypt TitleDiscovered?.Invoke(this, aaxcDownloader.Title); AuthorsDiscovered?.Invoke(this, aaxcDownloader.Author); NarratorsDiscovered?.Invoke(this, aaxcDownloader.Narrator); - CoverImageFilepathDiscovered?.Invoke(this, aaxcDownloader.CoverArt); + + if (aaxcDownloader.CoverArt is not null) + CoverImageFilepathDiscovered?.Invoke(this, aaxcDownloader.CoverArt); // override default which was set in CreateAsync var proposedOutputFile = Path.Combine(destinationDir, $"{PathLib.ToPathSafeString(libraryBook.Book.Title)} [{libraryBook.Book.AudibleProductId}].m4b"); diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index 3d4757c8..0bcf08f7 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 4.4.0.181 + 5.0.0.1