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

Commit

Permalink
Fix potential NullReferenceException (win)
Browse files Browse the repository at this point in the history
  • Loading branch information
skel35 committed Mar 5, 2020
1 parent 413d1bb commit 9f53cd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void onGridKeyDown(object sender, KeyEventArgs e)
}
case Key.Escape:
{
if (this.isRunning || this.editModeProjectLabel.ViewModel.HasProject == false)
if (this.isRunning || this.editModeProjectLabel.ViewModel?.HasProject != true)
return;
this.clearSelectedProject();
e.Handled = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void onGridKeyDown(object sender, KeyEventArgs e)
}
case Key.Escape:
{
if (this.isRunning || this.editModeProjectLabel.ViewModel.HasProject == false)
if (this.isRunning || this.editModeProjectLabel.ViewModel?.HasProject != true)
return;
this.clearSelectedProject();
e.Handled = true;
Expand Down

0 comments on commit 9f53cd9

Please sign in to comment.