Add null check when displaying image in form

This commit is contained in:
Robert McRackan 2021-06-29 13:57:18 -04:00
parent ef2adfd474
commit 120fb58da7
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

@ -13,7 +13,7 @@
<!-- <PublishSingleFile>true</PublishSingleFile> -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>4.4.0.181</Version>
<Version>5.0.0.1</Version>
</PropertyGroup>
<ItemGroup>