Fix NullPointerExceptions
This commit is contained in:
parent
d82058417a
commit
186772fe3b
@ -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());
|
||||||
|
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user