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
commit a1a9dc066c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,10 +108,9 @@ func main() {
testInfo := getTestInfo(spec) testInfo := getTestInfo(spec)
if testInfo != nil { if testInfo != nil {
testInfos = append(testInfos, testInfo) testInfos = append(testInfos, testInfo)
} if err := validateTestName(testInfo.CodeName); err != nil {
log.Fatal(err)
if err := validateTestName(testInfo.CodeName); err != nil { }
log.Fatal(err)
} }
} }
} }