Only keep the motor if it was parsed correctly.
This commit is contained in:
parent
ab74e44013
commit
e094a43c45
@ -139,8 +139,10 @@ public abstract class ThrustCurveAPI {
|
|||||||
|
|
||||||
for( MotorBurnFile entry : listOfMotors ) {
|
for( MotorBurnFile entry : listOfMotors ) {
|
||||||
ThrustCurveMotor motor = entry.getThrustCurveMotor();
|
ThrustCurveMotor motor = entry.getThrustCurveMotor();
|
||||||
|
if ( motor != null ) {
|
||||||
motorsByDesignation.put( motor.getDesignation(), motor);
|
motorsByDesignation.put( motor.getDesignation(), motor);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new ArrayList<ThrustCurveMotor>(motorsByDesignation.values());
|
return new ArrayList<ThrustCurveMotor>(motorsByDesignation.values());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user