Skip to content

Commit

Permalink
Fix a potential null ref on NET Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jul 27, 2024
1 parent 966cc02 commit 6031873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NetSparkle/AppCastHandlers/XMLAppCast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ protected FilterItemResult FilterAppCastItemByOS(AppCastItem item)
// don't allow non-windows updates
if (!item.IsWindowsUpdate)
{
_logWriter?.PrintMessage("Rejecting update for {0} ({1}, {2}) because it isn't a Windows update and we're on Windows", item.Version,
item.ShortVersion, item.Title);
_logWriter?.PrintMessage("Rejecting update for {0} ({1}, {2}) because it isn't a Windows update and we're on Windows", item.Version ?? "[Unknown version]",
item.ShortVersion ?? "[Unknown short version]", item.DownloadLink ?? "[Unknown download link]");
return FilterItemResult.NotThisPlatform;
}
#else
Expand Down

0 comments on commit 6031873

Please sign in to comment.