From e1381eee96f27b8fdd9b8f63461fede173842cd2 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 17 Apr 2021 12:52:33 -0400 Subject: [PATCH] Don't crash if no state transitions --- src/uorocketry/basestation/Window.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uorocketry/basestation/Window.java b/src/uorocketry/basestation/Window.java index e91a710..e3b3629 100644 --- a/src/uorocketry/basestation/Window.java +++ b/src/uorocketry/basestation/Window.java @@ -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();