Skip to content

Commit a3ebff3

Browse files
authored
fix(vpcgw): fix gatewayNetwork read nil pointer (#3111)
1 parent 7fd125e commit a3ebff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/vpcgw/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func ResourceVPCGatewayNetworkRead(ctx context.Context, d *schema.ResourceData,
240240
return diag.FromErr(err)
241241
}
242242

243-
if gatewayNetwork.PrivateNetworkID != "" {
243+
if gatewayNetwork != nil && gatewayNetwork.PrivateNetworkID != "" {
244244
diags = setPrivateIPsV1(ctx, d, apiV1, gatewayV1, m)
245245
}
246246

0 commit comments

Comments
 (0)