Skip to content

Commit

Permalink
fix nil pointer panic in registry.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 6, 2024
1 parent 735d0cc commit 293b654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/coordinator/web/handlers/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 293b654

Please sign in to comment.