azbrowse icon indicating copy to clipboard operation
azbrowse copied to clipboard

Refresh an RG with active filter returning single item causes crash

Open lawrencegripper opened this issue 3 years ago • 1 comments

panic: runtime error: index out of range [0] with length 0────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

goroutine 116 [running]:
github.com/lawrencegripper/azbrowse/internal/pkg/views.(*ListWidget).CurrentItem(...)
	/home/runner/work/azbrowse/azbrowse/internal/pkg/views/list.go:438
github.com/lawrencegripper/azbrowse/internal/pkg/views.(*ListWidget).Navigate(0xc000ca60d0, 0xc0010a2200, 0x37, 0x40, 0xc0006f9ca0, 0xc001a9d000, 0x38, 0x0)
	/home/runner/work/azbrowse/azbrowse/internal/pkg/views/list.go:329 +0x85b
github.com/lawrencegripper/azbrowse/internal/pkg/views.(*ListWidget).ExpandCurrentSelection.func1(0xc000ca60d0, 0xc000e6e300, 0xc001aa0930, 0xc001a9d000)
	/home/runner/work/azbrowse/azbrowse/internal/pkg/views/list.go:308 +0x105
created by github.com/lawrencegripper/azbrowse/internal/pkg/views.(*ListWidget).ExpandCurrentSelection
	/home/runner/work/azbrowse/azbrowse/internal/pkg/views/list.go:296 +0x3db

lawrencegripper avatar Mar 10 '21 06:03 lawrencegripper

Flagging stale issue. Actions will close this issue in the next 5 days unless action is taken.

github-actions[bot] avatar Apr 09 '21 07:04 github-actions[bot]