Skip to content

Commit

Permalink
Fix NRE when using --version on fluent desktop (WalletWasabi#13320)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolay authored Aug 15, 2024
1 parent b4f43aa commit d899b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WalletWasabi.Fluent.Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public static async Task<int> Main(string[] args)
throw app.TerminateService.GracefulCrashException;
}

if (exitCode == ExitCode.Ok && Services.UpdateManager.DoUpdateOnClose)
if (Services.UpdateManager is {} updateManager && exitCode == ExitCode.Ok && updateManager.DoUpdateOnClose)
{
Services.UpdateManager.StartInstallingNewVersion();
updateManager.StartInstallingNewVersion();
}

return (int)exitCode;
Expand Down

0 comments on commit d899b5d

Please sign in to comment.