Skip to content

Commit

Permalink
Fix potential null ref in web file downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Apr 27, 2024
1 parent c0a4ac2 commit ec05e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NetSparkle/Downloaders/WebFileDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private async Task StartFileDownloadAsync(Uri uri, string downloadFilePath)
}
catch (Exception e)
{
LogWriter.PrintMessage("Error: {0}", e.Message);
_logger?.PrintMessage("Error: {0}", e.Message);
IsDownloading = false;
DownloadFileCompleted?.Invoke(this, new AsyncCompletedEventArgs(e, false, null));
}
Expand Down

0 comments on commit ec05e92

Please sign in to comment.