Skip to content

Commit

Permalink
Merge pull request #17 from uorocketry/two-way-radio
Browse files Browse the repository at this point in the history
Don't crash if no state transitions
  • Loading branch information
ajayyy authored Apr 17, 2021
2 parents 88abcf1 + e1381ee commit 41a81f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/uorocketry/basestation/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ public Window(Main main) {
}
} catch (JSONException e) {
// No states then
stateSendingPanel.setVisible(false);
if (stateSendingPanel != null) {
stateSendingPanel.setVisible(false);
}
}

centerChartPanel = new JPanel();
Expand Down

0 comments on commit 41a81f5

Please sign in to comment.