-
-
Notifications
You must be signed in to change notification settings - Fork 476
Panic on go to reference with collapsed schemas #365
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to repro (tested with v39.0.2)
- Collapse
.components.schemas - Press
Ctrl+gon any visible$ref
Caught panic:
runtime error: invalid memory address or nil pointer dereference
Restoring terminal...
goroutine 1 [running]:
runtime/debug.Stack()
/usr/lib/go/src/runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
/usr/lib/go/src/runtime/debug/stack.go:18 +0x13
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0xc0001d68c0, {0x947fa0, 0xff05b0})
/builddir/fx-39.0.2/_build-fx-xbps/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.6/tea.go:810 +0xac
github.com/charmbracelet/bubbletea.(*Program).Run.func2()
/builddir/fx-39.0.2/_build-fx-xbps/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.6/tea.go:601 +0xe8
panic({0x947fa0?, 0xff05b0?})
/usr/lib/go/src/runtime/panic.go:792 +0x132
main.(*model).selectNode(0xc000212008, 0x0)
/builddir/fx-39.0.2/main.go:1281 +0x94
main.(*model).handleKey(0xc000212008, {0x7, {0x0, 0x0, 0x0}, 0x0, 0x0})
/builddir/fx-39.0.2/main.go:965 +0x2a59
main.(*model).Update(0xc000212008, {0x98d020?, 0xc00028e390})
/builddir/fx-39.0.2/main.go:487 +0x685
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc0001d68c0, {0xa9da38?, 0xc000212008?}, 0xc0000a43f0)
/builddir/fx-39.0.2/_build-fx-xbps/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.6/tea.go:525 +0x7d7
github.com/charmbracelet/bubbletea.(*Program).Run(0xc0001d68c0)
/builddir/fx-39.0.2/_build-fx-xbps/pkg/mod/github.com/charmbracelet/bubbletea@v1.3.6/tea.go:679 +0xb56
main.main()
/builddir/fx-39.0.2/main.go:281 +0x1512
panic: program was killed: program experienced a panic
goroutine 1 [running]:
main.main()
/builddir/fx-39.0.2/main.go:283 +0x1899
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working