Skip to content

Commit ce5f2c1

Browse files
committed
chore: add check on config
1 parent e81f59e commit ce5f2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/provider_sdkv2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func SDKProvider(config *Config) plugin.ProviderFunc {
354354
terraformVersion := p.TerraformVersion
355355

356356
// If we provide meta in config use it. This is useful for tests
357-
if config.Meta != nil {
357+
if config != nil && config.Meta != nil {
358358
return config.Meta, nil
359359
}
360360

0 commit comments

Comments
 (0)