Merge pull request #109256 from chendave/nullpointer

Fix the nil pointer dereference for comformance spec validation
This commit is contained in:
Kubernetes Prow Robot
2022-04-05 13:33:37 -07:00
committed by GitHub

View File

@@ -108,13 +108,12 @@ func main() {
testInfo := getTestInfo(spec)
if testInfo != nil {
testInfos = append(testInfos, testInfo)
}
if err := validateTestName(testInfo.CodeName); err != nil {
log.Fatal(err)
}
}
}
}
sort.Slice(testInfos, func(i, j int) bool { return testInfos[i].CodeName < testInfos[j].CodeName })
saveAllTestInfo(testInfos)