diff --git a/providers/namedotcom/records.go b/providers/namedotcom/records.go index 5536ab287..93cc88df2 100644 --- a/providers/namedotcom/records.go +++ b/providers/namedotcom/records.go @@ -41,7 +41,10 @@ func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Co corrections = append(corrections, c) } for _, cre := range create { - rec := cre.Desired.Original.(*models.RecordConfig) + var rec *models.RecordConfig + if cre.Desired.Original != nil { + rec = cre.Desired.Original.(*models.RecordConfig) + } c := &models.Correction{Msg: cre.String(), F: func() error { return n.createRecord(rec, dc.Name) }} corrections = append(corrections, c) }