From 52c356465de5e806519d8276574649867cae927b Mon Sep 17 00:00:00 2001 From: bdular Date: Sat, 28 Dec 2024 10:44:55 +0100 Subject: [PATCH] Fix example panic when key is unknown --- example/1.6/cp/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/1.6/cp/handler.go b/example/1.6/cp/handler.go index a0f34c70..ecfe1566 100644 --- a/example/1.6/cp/handler.go +++ b/example/1.6/cp/handler.go @@ -99,7 +99,7 @@ func (handler *ChargePointHandler) OnGetConfiguration(request *core.GetConfigura for _, key := range request.Key { configKey, ok := handler.configuration[key] if !ok { - unknownKeys = append(unknownKeys, *configKey.Value) + unknownKeys = append(unknownKeys, key) } else { resultKeys = append(resultKeys, configKey) }