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

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

check if grossvehiclemass is not null

parent 4731c228
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ namespace TUGraz.VectoCore.Models.Declaration
public override Segment Lookup(VehicleCategory vehicleCategory, AxleConfiguration axleConfiguration,
Kilogram grossVehicleMassRating, Kilogram curbWeight)
{
if (grossVehicleMassRating < 7.5.SI<Ton>()) {
if (grossVehicleMassRating == null || grossVehicleMassRating < 7.5.SI<Ton>()) {
throw new VectoException("Gross vehicle mass must be greater than 7.5 tons");
}
......
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