From b1bc85a580052ca7cefc840389bf4ca891895bb0 Mon Sep 17 00:00:00 2001 From: Guillaume Noale Date: Mon, 26 May 2025 14:55:15 +0200 Subject: [PATCH] fix(vpcgw): fix gatewayNetwork read nil pointer --- internal/services/vpcgw/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/vpcgw/network.go b/internal/services/vpcgw/network.go index 485ad80e37..3da2dc6cfe 100644 --- a/internal/services/vpcgw/network.go +++ b/internal/services/vpcgw/network.go @@ -240,7 +240,7 @@ func ResourceVPCGatewayNetworkRead(ctx context.Context, d *schema.ResourceData, return diag.FromErr(err) } - if gatewayNetwork.PrivateNetworkID != "" { + if gatewayNetwork != nil && gatewayNetwork.PrivateNetworkID != "" { diags = setPrivateIPsV1(ctx, d, apiV1, gatewayV1, m) }