diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs index aa1f6f553724be10172dc5382de4714380dc529b..1994691105ddba51fb234b695feb4a143e5d7995 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Strategies/HybridStrategy.cs @@ -1324,7 +1324,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies if (vehiclespeedBelowThreshold && (emPos == PowertrainPosition.HybridP2 || emPos == PowertrainPosition.HybridP1)) { off.Setting.GearboxInNeutral = true; } else { - off.Setting.GearboxInNeutral = PreviousState.Solution.Setting.GearboxInNeutral; + off.Setting.GearboxInNeutral = PreviousState.Solution?.Setting.GearboxInNeutral ?? false; } eval.Add(off);