Skip to content

Commit f6edb73

Browse files
Matheus Politanorubenhoenle
authored andcommitted
add checj to custom domain
1 parent e8b6f46 commit f6edb73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stackit/internal/services/cdn/customdomain/resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ func mapCustomDomainResourceFields(customDomainResponse *cdn.GetCustomDomainResp
443443
return fmt.Errorf("model input is nil")
444444
}
445445

446+
if customDomainResponse.CustomDomain == nil {
447+
return fmt.Errorf("CustomDomain is missing in response")
448+
}
446449
if customDomainResponse.CustomDomain.Name == nil {
447450
return fmt.Errorf("name is missing in response")
448451
}

0 commit comments

Comments
 (0)