Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Fix null ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed May 29, 2020
1 parent c09cae5 commit c33ce84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tgstation.Server.ControlPanel/ControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Run(IUpdater updater, string[] args)

using var mwvm = new MainWindowViewModel(updater);
AppBuilder app;
if (args.FirstOrDefault().ToUpperInvariant() == "--WIN32-HACK")
if (args.FirstOrDefault()?.ToUpperInvariant() == "--WIN32-HACK")
app = AppBuilder.Configure<App>()
.UseWin32()
.UseDirect2D1()
Expand Down

0 comments on commit c33ce84

Please sign in to comment.