diff --git a/VectoCore/VectoCore/Models/Declaration/DeclarationData.cs b/VectoCore/VectoCore/Models/Declaration/DeclarationData.cs index fc492f1b7f664e82af82f3f173ddfed62efffea6..dd539a538d3f8f2c7ce70c8d29acf5b09b201a51 100644 --- a/VectoCore/VectoCore/Models/Declaration/DeclarationData.cs +++ b/VectoCore/VectoCore/Models/Declaration/DeclarationData.cs @@ -222,7 +222,7 @@ namespace TUGraz.VectoCore.Models.Declaration case VectoSimulationJobType.ParallelHybridVehicle: case VectoSimulationJobType.EngineOnlySimulation: case VectoSimulationJobType.IHPC: - return vehicleData.Components.EngineInputData?.RatedPowerDeclared ?? 0.SI<Watt>() + vehicleData.MaxNetPower1 ?? 0.SI<Watt>(); + return vehicleData.Components?.EngineInputData?.RatedPowerDeclared ?? 0.SI<Watt>() + vehicleData.MaxNetPower1 ?? 0.SI<Watt>(); case VectoSimulationJobType.SerialHybridVehicle: case VectoSimulationJobType.BatteryElectricVehicle: case VectoSimulationJobType.IEPC_E: