jackall3n/terraform-provider-render

invalid memory address or nil pointer dereference on render/resources/service_custom_domain.go:178

Opened this issue · 0 comments

Hi! Just got a panic when replacing some resources

Stack trace from the terraform-provider-render_v1.3.1 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xac41fb]

goroutine 45 [running]:
github.com/jackall3n/terraform-provider-render/render/resources.(*serviceCustomDomainResource).Update(0xc0002ed650, {0xd90378, 0xc0002fe870}, {{{{0xd937a8, 0xc0002fef00}, {0xb6dfc0, 0xc0002fee70}}, {0xd94890, 0xc000215b30}}, {{{0xd937a8, ...}, ...}, ...}, ...}, ...)
        github.com/jackall3n/terraform-provider-render/render/resources/service_custom_domain.go:178 +0x45b
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).UpdateResource(0xc0002194a0, {0xd90378, 0xc0002fe870}, 0xc0001833a0, 0xc0001832b0)
        github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/fwserver/server_updateresource.go:122 +0x72e
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ApplyResourceChange(0xd90378?, {0xd90378, 0xc0002fe870}, 0xc0005ae000, 0xc0001834d0)
        github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/fwserver/server_applyresourcechange.go:102 +0x1a5
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ApplyResourceChange(0xc0002194a0, {0xd90378?, 0xc0002fe720?}, 0xc0000b5f90)
        github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/proto6server/server_applyresourcechange.go:55 +0x27b
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ApplyResourceChange(0xc000233c20, {0xd90378?, 0xc0002d1f20?}, 0xc00023f180)
        github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:857 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ApplyResourceChange_Handler({0xc2e2c0?, 0xc000233c20}, {0xd90378, 0xc0002d1f20}, 0xc00023f110, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:467 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00029c1e0, {0xd93960, 0xc0004121a0}, 0xc0002e7560, 0xc0003dfbf0, 0x1227358, 0x0)
        google.golang.org/grpc@v1.57.0/server.go:1360 +0xe13
google.golang.org/grpc.(*Server).handleStream(0xc00029c1e0, {0xd93960, 0xc0004121a0}, 0xc0002e7560, 0x0)
        google.golang.org/grpc@v1.57.0/server.go:1737 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.1()
        google.golang.org/grpc@v1.57.0/server.go:982 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/grpc@v1.57.0/server.go:980 +0x18c