Fix exception when deleting config while PhotoStudio open

This commit is contained in:
SiboVG 2022-08-14 10:34:00 +02:00
parent e02f75a29c
commit 9b4ccbf2e6

View File

@ -305,6 +305,9 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
while (!toProcess.isEmpty()) { while (!toProcess.isEmpty()) {
RocketComponent comp = toProcess.poll(); RocketComponent comp = toProcess.poll();
if (comp == null) {
continue;
}
toReturn.add(comp); toReturn.add(comp);
for (RocketComponent child : comp.getChildren()) { for (RocketComponent child : comp.getChildren()) {