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

Bug in zero passwords, in press update #5

Open
BadWolf1st opened this issue May 11, 2024 · 0 comments
Open

Bug in zero passwords, in press update #5

BadWolf1st opened this issue May 11, 2024 · 0 comments

Comments

@BadWolf1st
Copy link

BadWolf1st commented May 11, 2024

All passwords total 0
       
Caught panic:

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

Restoring terminal...

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/lib/go/src/runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()
	/usr/lib/go/src/runtime/debug/stack.go:16 +0x13
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
	/home/badwolf/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:478 +0x91
panic({0x23efa0?, 0xc0002b82d0?})
	/usr/lib/go/src/runtime/panic.go:770 +0x132
main.onPaswordListUpdate({_, _}, {0x4, {0xc00013cc40, 0x3c, 0x3c}, 0x0, {{0x0, 0x0}, {0x250044, ...}, ...}, ...})
	/home/badwolf/GitHub/hash/listpassword.go:65 +0x9d5
main.Model.Update({0x1, {0xc00013cc40, 0x3c, 0x3c}, 0x0, {{0x0, 0x0}, {0x250044, 0x2}, {0x253405, ...}, ...}, ...}, ...)
	/home/badwolf/GitHub/hash/tui.go:155 +0x174
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc0001496c0, {0x299ce8?, 0xc000129108?}, 0xc00010e180)
	/home/badwolf/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:411 +0x5e2
github.com/charmbracelet/bubbletea.(*Program).Run(0xc0001496c0)
	/home/badwolf/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:543 +0x86b
main.main()
	/home/badwolf/GitHub/hash/main.go:39 +0x26a

Playback Steps:

  1. Enter the master password
  2. Log in with the master password (ctrl + ->)
  3. Press Update (ctrl + u)

Expected results:
Message: You don't have passwords
Or: Nothing happened

@BadWolf1st BadWolf1st changed the title Bug in zero password, in press update Bug in zero passwords, in press update May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant