Only keep the motor if it was parsed correctly.

This commit is contained in:
Kevin Ruland 2012-02-26 14:59:59 +00:00
parent ab74e44013
commit e094a43c45

View File

@ -139,7 +139,9 @@ public abstract class ThrustCurveAPI {
for( MotorBurnFile entry : listOfMotors ) {
ThrustCurveMotor motor = entry.getThrustCurveMotor();
motorsByDesignation.put( motor.getDesignation(), motor);
if ( motor != null ) {
motorsByDesignation.put( motor.getDesignation(), motor);
}
}
return new ArrayList<ThrustCurveMotor>(motorsByDesignation.values());