diff --git a/terraform/graph.go b/terraform/graph.go index 3232aaa109..4b993d5a3a 100644 --- a/terraform/graph.go +++ b/terraform/graph.go @@ -478,6 +478,9 @@ func graphAddProviderConfigs(g *depgraph.Graph, c *config.Config) { break } } + if pc == nil { + panic("pc not found") + } pcNoun = &depgraph.Noun{ Name: fmt.Sprintf("provider.%s", pcName),