From 293b6541f70a26c9696f7acaf26ab6442746922e Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 6 Nov 2024 12:16:59 +0100 Subject: [PATCH] fix nil pointer panic in registry.go --- pkg/coordinator/web/handlers/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/coordinator/web/handlers/registry.go b/pkg/coordinator/web/handlers/registry.go index 9b6f15f..ffd62e5 100644 --- a/pkg/coordinator/web/handlers/registry.go +++ b/pkg/coordinator/web/handlers/registry.go @@ -199,7 +199,7 @@ func (fh *FrontendHandler) getTestRegistryData(idx int, test types.TestDescripto testData.Name = testConfig.Name } - if !fh.securityTrimmed { + if !fh.securityTrimmed && test.Vars() != nil { configJSON, err := json.Marshal(test.Vars().GetVarsMap(nil, true)) if err == nil { testData.Config = string(configJSON)