diff --git a/VectoCore/Models/Simulation/Impl/VehicleContainer.cs b/VectoCore/Models/Simulation/Impl/VehicleContainer.cs index e49344a5e635bc5bf7a6f5d968909d47a712b4db..492cb064d90f2a0c5519a1c81c577fb1509dc2c7 100644 --- a/VectoCore/Models/Simulation/Impl/VehicleContainer.cs +++ b/VectoCore/Models/Simulation/Impl/VehicleContainer.cs @@ -267,7 +267,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl public Meter CycleStartDistance { - get { return Road.CycleStartDistance; } + get { return Road == null ? 0.SI<Meter>() : Road.CycleStartDistance; } } } } \ No newline at end of file