Skip to content

Commit a1a9dc0

Browse files
authored
Merge pull request kubernetes#109256 from chendave/nullpointer
Fix the nil pointer dereference for comformance spec validation
2 parents 5163909 + 1b5d8b0 commit a1a9dc0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/conformance/walk.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ func main() {
108108
testInfo := getTestInfo(spec)
109109
if testInfo != nil {
110110
testInfos = append(testInfos, testInfo)
111-
}
112-
113-
if err := validateTestName(testInfo.CodeName); err != nil {
114-
log.Fatal(err)
111+
if err := validateTestName(testInfo.CodeName); err != nil {
112+
log.Fatal(err)
113+
}
115114
}
116115
}
117116
}

0 commit comments

Comments
 (0)