diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs index c9c30009eb506810106e3665c88041e2ecbb9a25..91ffad2f5135ba0e3462d5df684bebad8aa68a29 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/ElectricMotor.cs @@ -374,7 +374,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl if (!dryRun) { CurrentState.IceSwitchedOn = iceOn; - CurrentState.ICEOnSpeed = DataBus.EngineInfo.EngineSpeed; + CurrentState.ICEOnSpeed = DataBus.EngineInfo?.EngineSpeed; CurrentState.EMSpeed = emSpeed; CurrentState.EMTorque = emOff ? null : emTorque; CurrentState.EmTorqueMap = emTorqueMap;