Closed shipperizer closed 3 months ago
NoopClient was returning an empty response and a nil error, this triggered
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x178ca01] goroutine 77 [running]: github.com/canonical/identity-platform-admin-ui/pkg/roles.(*Service).removePermissionsByType(0xc0008bcf00, {0x1ebc708?, 0xc0005cd800?}, {0xc0003d07f5, 0x6}, {0x1bf2a94, 0x6}) /root/parts/go-build/build/pkg/roles/service.go:292 +0x261 github.com/canonical/identity-platform-admin-ui/pkg/roles.(*Service).DeleteRole.func1({0x1bf2a94?, 0x0?}) /root/parts/go-build/build/pkg/roles/service.go:245 +0x77 created by github.com/canonical/identity-platform-admin-ui/pkg/roles.(*Service).DeleteRole in goroutine 70 /root/parts/go-build/build/pkg/roles/service.go:243 +0x24b
returning a response with no tuples is more realistic
NoopClient was returning an empty response and a nil error, this triggered
returning a response with no tuples is more realistic