We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52492e6 commit 58dd760Copy full SHA for 58dd760
staging/src/k8s.io/code-generator/cmd/conversion-gen/generators/conversion.go
@@ -145,6 +145,10 @@ type conversionFuncMap map[conversionPair]*types.Type
145
146
// Returns all manually-defined conversion functions in the package.
147
func getManualConversionFunctions(context *generator.Context, pkg *types.Package, manualMap conversionFuncMap) {
148
+ if pkg == nil {
149
+ glog.Warningf("Skipping nil package passed to getManualConversionFunctions")
150
+ return
151
+ }
152
glog.V(5).Infof("Scanning for conversion functions in %v", pkg.Name)
153
154
scopeName := types.Ref(conversionPackagePath, "Scope").Name
0 commit comments