diff --git a/helper/schema/schema.go b/helper/schema/schema.go index ca241f4ae2..3e878c0a38 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -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 }