Skip to content

Commit

Permalink
fix: Possible null-ref in MenuBar
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Jun 2, 2021
1 parent 32ecb8d commit d46acd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/UIElement.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public FlyoutBase ContextFlyout

public IList<KeyboardAccelerator> KeyboardAccelerators
{
get => GetKeyboardAcceleratorsValue();
get => GetKeyboardAcceleratorsValue() ?? (KeyboardAccelerators = new List<KeyboardAccelerator>());
set => SetKeyboardAcceleratorsValue(value);
}
}
Expand Down

0 comments on commit d46acd2

Please sign in to comment.