Only keep the motor if it was parsed correctly.
This commit is contained in:
		
							parent
							
								
									ab74e44013
								
							
						
					
					
						commit
						e094a43c45
					
				@ -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());
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user