Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh causes panic if previously selected item no longer exists #346

Open
stuartleeks opened this issue May 7, 2021 · 0 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed no-stale

Comments

@stuartleeks
Copy link
Collaborator

When refreshing the current view, if the previously selected item no longer exists (e.g. because it has been deleted) then it causes a panic. Issue detected on Service Bus Queues.

Stack Trace:
goroutine 1 [running]:
runtime/debug.Stack(0x16c2842, 0x13, 0xc0011f2080)
        /usr/local/go/src/runtime/debug/stack.go:24 +0x9f
github.com/lawrencegripper/azbrowse/internal/pkg/errorhandling.RecoveryWithCleanup()
        /home/runner/work/azbrowse/azbrowse/internal/pkg/errorhandling/recovery.go:82 +0x1e6
panic(0x146c9e0, 0xc0014c2270)
        /usr/local/go/src/runtime/panic.go:965 +0x1b9
log.Panicln(0xc001433bc0, 0x1, 0x1)
        /usr/local/go/src/log/log.go:368 +0xae
main.run(0xc000a4c580)
        /home/runner/work/azbrowse/azbrowse/cmd/azbrowse/main.go:132 +0x4cb
main.createRootCmd.func2(0xc0009d0840, 0xc00084f3c0, 0x0, 0x2)
        /home/runner/work/azbrowse/azbrowse/cmd/azbrowse/cmd.go:147 +0x185
github.com/spf13/cobra.(*Command).execute(0xc0009d0840, 0xc00003a190, 0x2, 0x2, 0xc0009d0840, 0xc00003a190)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0009d0840, 0x18, 0x0, 0x0)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.handleCommandAndArgs()
        /home/runner/work/azbrowse/azbrowse/cmd/azbrowse/cmd.go:51 +0x139
main.main()
        /home/runner/work/azbrowse/azbrowse/cmd/azbrowse/main.go:40 +0x2a

``
@lawrencegripper lawrencegripper added bug Something isn't working help wanted Extra attention is needed no-stale labels May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed no-stale
Projects
None yet
Development

No branches or pull requests

2 participants