Skip to content

Commit

Permalink
additional nil check
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Frahry <[email protected]>
  • Loading branch information
jrauschenbusch and mbfrahry authored Jun 18, 2020
1 parent 0401151 commit 9bdc8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/helpers/azure/kusto.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func SchemaKustoIdentity() *schema.Schema {
}

func ExpandKustoIdentity(input []interface{}) *kusto.Identity {
if len(input) == 0 {
if len(input) == 0 || input[0] == nil {
return nil
}
identity := input[0].(map[string]interface{})
Expand Down

0 comments on commit 9bdc8ab

Please sign in to comment.