Skip to content

Commit

Permalink
FirmwareSelection: add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jan 21, 2020
1 parent 7c62c41 commit 761ad76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/FirmwareSelection.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public FirmwareSelection(List<APFirmware.FirmwareInfo> fwitems, ArduPilot.Device

if (DevInfo.HasValue)
{
platform.SelectedItem = DevInfo.Value.board.Replace("-BL", "");
platform.SelectedItem = DevInfo.Value.board?.Replace("-BL", "");

mavtype.IsVisible = false;
lbltype.IsVisible = false;
Expand Down

0 comments on commit 761ad76

Please sign in to comment.