From e1c37e833e663bb9973c190911ce8523a0fb40ad Mon Sep 17 00:00:00 2001 From: Jack Batzner Date: Mon, 6 Jan 2020 10:46:31 -0600 Subject: [PATCH] Actually fix panic this time --- .../apimanagement/resource_arm_api_management_api_operation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/apimanagement/resource_arm_api_management_api_operation.go b/azurerm/internal/services/apimanagement/resource_arm_api_management_api_operation.go index da9c713c8d58..e4fd0bfb2808 100644 --- a/azurerm/internal/services/apimanagement/resource_arm_api_management_api_operation.go +++ b/azurerm/internal/services/apimanagement/resource_arm_api_management_api_operation.go @@ -245,7 +245,7 @@ func resourceArmApiManagementApiOperationDelete(d *schema.ResourceData, meta int } func expandApiManagementOperationRequestContract(input []interface{}) (*apimanagement.RequestContract, error) { - if len(input) == 0 { + if len(input) == 0 || input[0] == nil { return nil, nil }