diff --git a/tools/importer-rest-api-specs/pipeline/run_importer.go b/tools/importer-rest-api-specs/pipeline/run_importer.go index 0437a913086..060e6982747 100644 --- a/tools/importer-rest-api-specs/pipeline/run_importer.go +++ b/tools/importer-rest-api-specs/pipeline/run_importer.go @@ -91,6 +91,9 @@ func runImportForService(input RunInput, serviceName string, apiVersionsForServi if err != nil { return fmt.Errorf("parsing data for Service %q / Version %q: %+v", v.ServiceName, v.ApiVersion, err) } + if tempDataForApiVersion == nil { + continue + } for name, resource := range tempDataForApiVersion.Resources { dataForApiVersion.Resources[name] = resource }