Fix NullPointerExceptions

This commit is contained in:
SiboVG 2022-06-28 01:00:56 +02:00
parent d82058417a
commit 186772fe3b
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ public class RecoveryConfigurationPanel extends FlightConfigurablePanel<Recovery
} }
public void updateComponentSelection(ListSelectionEvent e) { public void updateComponentSelection(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) { if (e.getValueIsAdjusting() || getSelectedComponents() == null) {
return; return;
} }
List<RocketComponent> components = new ArrayList<>(getSelectedComponents()); List<RocketComponent> components = new ArrayList<>(getSelectedComponents());

View File

@ -277,7 +277,7 @@ public class SeparationConfigurationPanel extends FlightConfigurablePanel<AxialS
} }
public void updateComponentSelection(ListSelectionEvent e) { public void updateComponentSelection(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) { if (e.getValueIsAdjusting() || getSelectedComponents() == null) {
return; return;
} }
List<RocketComponent> components = new ArrayList<>(getSelectedComponents()); List<RocketComponent> components = new ArrayList<>(getSelectedComponents());