Skip to content

Commit

Permalink
- Fixed a crash introduced in previous commits
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 17, 2018
1 parent 1999278 commit 050415a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Codist/Controls/ThemedMenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public object SubMenuHeader {
switch (args.Key) {
case System.Windows.Input.Key.Enter:
if (args.OriginalSource is TextBox) {
Items.GetFirst<ThemedMenuItem>(i => i.IsEnabled && i.IsVisible).PerformClick();
Items.GetFirst<ThemedMenuItem>(i => i.IsEnabled && i.IsVisible)?.PerformClick();
}
break;
case System.Windows.Input.Key.Down: Items.FocusFirst<MenuItem>(); break;
Expand Down

0 comments on commit 050415a

Please sign in to comment.