core: Check for attrV being nil before dereference
This can be an issue with unset computed fields. Fixes #8815.
This commit is contained in:
parent
a0a59d3fb7
commit
e0226c9039
|
@ -638,7 +638,9 @@ func (m schemaMap) diff(
|
|||
}
|
||||
|
||||
for attrK, attrV := range unsupressedDiff.Attributes {
|
||||
if schema.DiffSuppressFunc != nil && schema.DiffSuppressFunc(attrK, attrV.Old, attrV.New, d) {
|
||||
if schema.DiffSuppressFunc != nil &&
|
||||
attrV != nil &&
|
||||
schema.DiffSuppressFunc(attrK, attrV.Old, attrV.New, d) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue