Skip to content

Commit

Permalink
Check if _downloadTempFileName is whitespace, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Nov 5, 2024
1 parent 7049354 commit a8c626d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetSparkle/SparkleUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ public async Task InitAndBeginDownload(AppCastItem item)
LogWriter?.PrintMessage("Preparing to download {0}", item.DownloadLink ?? "[No download link available]");
_itemBeingDownloaded = item;
_downloadTempFileName = await GetDownloadPathForAppCastItem(item);
if (_downloadTempFileName == null)
if (_downloadTempFileName == null || string.IsNullOrWhiteSpace(_downloadTempFileName))
{
LogWriter?.PrintMessage("Unable to generate download temp file name; was the app cast set up properly with a download link?");
return;
Expand Down

0 comments on commit a8c626d

Please sign in to comment.