diff --git a/VectoCore/VectoCore/Models/Declaration/Segments.cs b/VectoCore/VectoCore/Models/Declaration/Segments.cs index 76f45862adde56efbb82b9695b26490ba164877f..a596eb77b47b9ad4d91a9522b979d6b7486cf704 100644 --- a/VectoCore/VectoCore/Models/Declaration/Segments.cs +++ b/VectoCore/VectoCore/Models/Declaration/Segments.cs @@ -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;