Skip to content

Commit

Permalink
Ocpp: fix connection status nil (#14963)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jul 22, 2024
1 parent 6b892f0 commit c6a7d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/ocpp/connector_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (conn *Connector) MeterValues(request *core.MeterValuesRequest) (*core.Mete
conn.mu.Lock()
defer conn.mu.Unlock()

if request.TransactionId != nil && conn.txnId == 0 &&
if request.TransactionId != nil && conn.txnId == 0 && conn.status != nil &&
(conn.status.Status == core.ChargePointStatusCharging ||
conn.status.Status == core.ChargePointStatusSuspendedEV ||
conn.status.Status == core.ChargePointStatusSuspendedEVSE) {
Expand Down

0 comments on commit c6a7d82

Please sign in to comment.