- In searching the repo section. When i provide wrong repo-name
- I got panic.
- `go Caught panic:
runtime error: invalid memory address or nil pointer dereference
Restoring terminal...
goroutine 1 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
/home/anisur/go/src/github.com/luisedmc/ghcmd/vendor/github.com/charmbracelet/bubbletea/tea.go:440 +0x95
panic({0x7573a0, 0xaa8450})
/usr/local/go/src/runtime/panic.go:890 +0x263
main.SearchRepository({0x850d78?, 0xc00002e0e8?}, 0x9?, {0xc000258960?, 0x5?}, {0xc000487c40?, 0x4?})
/home/anisur/go/src/github.com/luisedmc/ghcmd/services.go:42 +0xd7
main.Model.Update({0xf, {0x0, 0x0, {0x7bcf4a, 0x5}, {0x7bcbbf, 0x4}, {0x7bcba7, 0x3}, {{0xab4f30, ...}, ...}}, ...}, ...)
/home/anisur/go/src/github.com/luisedmc/ghcmd/tui.go:188 +0x638
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc000000000, {0x850c50?, 0xc00063d500?}, 0x10?)
/home/anisur/go/src/github.com/luisedmc/ghcmd/vendor/github.com/charmbracelet/bubbletea/tea.go:373 +0x646
github.com/charmbracelet/bubbletea.(*Program).Run(0xc000000000)
/home/anisur/go/src/github.com/luisedmc/ghcmd/vendor/github.com/charmbracelet/bubbletea/tea.go:503 +0x87d
main.main()
/home/anisur/go/src/github.com/luisedmc/ghcmd/main.go:12 +0x8a`