diff --git a/tencentcloud/services/clb/resource_tc_clb_listener_default_domain.go b/tencentcloud/services/clb/resource_tc_clb_listener_default_domain.go index 9d83190a29..291b14f9b4 100644 --- a/tencentcloud/services/clb/resource_tc_clb_listener_default_domain.go +++ b/tencentcloud/services/clb/resource_tc_clb_listener_default_domain.go @@ -99,7 +99,7 @@ func resourceTencentCloudClbListenerDefaultDomainCreate(d *schema.ResourceData, logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) } - if result == nil { + if result == nil || result.Response == nil || response.Response.RequestId == nil { e = fmt.Errorf("modify domain failed") return resource.NonRetryableError(e) } @@ -230,7 +230,7 @@ func resourceTencentCloudClbListenerDefaultDomainUpdate(d *schema.ResourceData, logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) } - if result == nil { + if result == nil || result.Response == nil || response.Response.RequestId == nil { e = fmt.Errorf("modify domain failed") return resource.NonRetryableError(e) }