diff --git a/core/loadpoint.go b/core/loadpoint.go index 161d1eb4d..d2a145db4 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -287,7 +287,9 @@ func (lp *LoadPoint) evVehicleConnectHandler() { lp.publish("connectedDuration", 0) // soc estimation reset on car change - lp.socEstimator.Reset() + if lp.socEstimator != nil { + lp.socEstimator.Reset() + } lp.notify(evVehicleConnect) }