Fix import issue when sim includes booster motor, but no booster present

This commit is contained in:
SiboVG 2023-02-25 20:03:13 +01:00
parent ea7ee41a25
commit a9746a9983

View File

@ -152,7 +152,7 @@ public class SimulationListHandler extends AbstractElementHandler {
private void addMotorToStage(final int stageNr, final Motor motor, final Double ignitionDelay,
final FlightConfigurationId id, final WarningSet warnings) {
if (motor == null) {
if (motor == null || rocket.getStage(stageNr) == null) {
return;
}
MotorMount mount = getMotorMountForStage(stageNr);