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

Skip to content
Snippets Groups Projects
Commit 26254bb4 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: CdxA for construction cycles can be empty

parent 6b96d2f0
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,10 @@ namespace TUGraz.VectoCore.Models.Declaration
row.Field<string>(".vaccfile")),
Missions = CreateMissions(ref grossVehicleMassRating, curbWeight, row),
GrossVehicleMassRating = grossVehicleMassRating,
CdAConstruction = row.ParseDouble("cdxa construction").SI<SquareMeter>()
CdAConstruction =
string.IsNullOrEmpty(row["cdxa_construction"].ToString())
? null
: row.ParseDouble("cdxa_construction").SI<SquareMeter>()
};
return segment;
......
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