Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4f3effc2 authored by Harald Martini's avatar Harald Martini
Browse files

use 0 Watt for engine power if no enginedata is available

parent 57f97952
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ namespace TUGraz.VectoCore.OutputData.XML
WeightingGroup = DeclarationData.WeightingGroup.Lookup(
modelData.VehicleData.VehicleClass, modelData.VehicleData.SleeperCab.Value,
modelData.EngineData.RatedPowerDeclared);
modelData.EngineData?.RatedPowerDeclared ?? Watt.Create(0));
}
_weightingFactors = WeightingGroup == WeightingGroup.Unknown
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment