OpsLevel / terraform-provider-opslevel

Terraform provider for OpsLevel.com
https://registry.terraform.io/providers/OpsLevel/opslevel/latest/docs
MIT License
8 stars 5 forks source link

nil pointer deference on plural service datasource #334

Closed rocktavious closed 4 months ago

rocktavious commented 4 months ago

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10540b1d4]
goroutine 70 [running]:
github.com/opslevel/terraform-provider-opslevel/opslevel.(*ServiceDataSourcesAll).Read(0x14000098058, {0x1057ee108, 0x14000632b10}, {{{{0x1057f2f88, 0x14000633d10}, {0x1056b71c0, 0x14000633950}}, {0x1057f5408, 0x140000945c0}}, {{{0x0, ...}, ...}, ...}}, ...)
        github.com/opslevel/terraform-provider-opslevel/opslevel/datasource_opslevel_services_all.go:152 +0x5f4
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadDataSource(0x14000500d00, {0x1057ee108, 0x14000632b10}, 0x14000632ba0, 0x140005936a8)
        github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/fwserver/server_readdatasource.go:79 +0x394
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadDataSource(0x14000500d00, {0x1057ee108?, 0x140006329f0?}, 0x1400041e040)
        github.com/hashicorp/terraform-plugin-framework@v1.8.0/internal/proto6server/server_readdatasource.go:55 +0x31c
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadDataSource(0x140003e06e0, {0x1057ee108?, 0x14000632240?}, 0x1400016c910)
        github.com/hashicorp/terraform-plugin-go@v0.22.2/tfprotov6/tf6server/server.go:686 +0x344
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadDataSource_Handler({0x1057b97a0?, 0x140003e06e0}, {0x1057ee108, 0x14000632240}, 0x140001a6000, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.22.2/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:572 +0x164
google.golang.org/grpc.(*Server).processUnaryRPC(0x1400053d600, {0x1057ee108, 0x140006321b0}, {0x1057f3da0, 0x1400054a180}, 0x1400017c360, 0x14000459bc0, 0x105d6f560, 0x0)
        google.golang.org/grpc@v1.63.2/server.go:1369 +0xba0
google.golang.org/grpc.(*Server).handleStream(0x1400053d600, {0x1057f3da0, 0x1400054a180}, 0x1400017c360)
        google.golang.org/grpc@v1.63.2/server.go:1780 +0xc80
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/grpc@v1.63.2/server.go:1019 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 39
        google.golang.org/grpc@v1.63.2/server.go:1030 +0x150
Error: The terraform-provider-opslevel_v0.13.0-1 plugin crashed!```