Skip to content

Commit

Permalink
nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
erhancagirici authored and ulucinar committed Oct 30, 2023
1 parent 6776afe commit 039b5a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/external_nofork.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func (c *NoForkConnector) applyStateFuncToParam(sc *schema.Schema, param any) an
return pmap
}
case schema.TypeSet, schema.TypeList:
if sc.Elem == nil {
return param
}
pArray := param.([]any)
if setSchema, ok := sc.Elem.(*schema.Schema); ok {
for i, p := range pArray {
Expand Down

0 comments on commit 039b5a9

Please sign in to comment.