Protect against NPE when simulations are not properly set up.
This commit is contained in:
parent
d2965a72f0
commit
25c1ba2307
@ -287,7 +287,7 @@ public class OpenRocketDocument implements ComponentChangeListener {
|
|||||||
}
|
}
|
||||||
for (Simulation s : getSimulations()) {
|
for (Simulation s : getSimulations()) {
|
||||||
// Assumes modifiable collection - which it is
|
// Assumes modifiable collection - which it is
|
||||||
if (s.getConfiguration().getFlightConfigurationID().equals(configId)) {
|
if (configId.equals(s.getConfiguration().getFlightConfigurationID())) {
|
||||||
removeSimulation(s);
|
removeSimulation(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user