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

Crash on selection of nonexistent entry #24

Open
lcmaqueda opened this issue Nov 18, 2016 · 1 comment
Open

Crash on selection of nonexistent entry #24

lcmaqueda opened this issue Nov 18, 2016 · 1 comment

Comments

@lcmaqueda
Copy link
Collaborator

The application crashes on selection of a non-existing entry:

sshot

panic: runtime error: index out of range

goroutine 1 [running, locked to thread]:
panic(0x5612926f9d80, 0xc42000c110)
	/usr/local/go/src/runtime/panic.go:500 +0x1a1
main.(*Passwords).CopyToClipboard(0x561292a66820, 0xffffffffffffffff)
	/home/xxxx/workspace/src/github.com/cortex/gopass/main.go:104 +0x142
reflect.Value.call(0x561292702320, 0x561292a66820, 0x213, 0x56129272d497, 0x4, 0xc420279ae8, 0x1, 0xa, 0x0, 0x5612926e4c80, ...)
	/usr/local/go/src/reflect/value.go:434 +0x5c8
reflect.Value.Call(0x561292702320, 0x561292a66820, 0x213, 0xc420279ae8, 0x1, 0xa, 0x561292a55320, 0xc420263e00, 0xc420263e00)
	/usr/local/go/src/reflect/value.go:302 +0xa4
github.com/cortex/gopass/vendor/github.com/limetext/qml-go.hookGoValueCallMethod(0x56129413fa10, 0x4, 0xc400000000, 0x7fff52569490)
	/home/xxxx/workspace/src/github.com/cortex/gopass/vendor/github.com/limetext/qml-go/bridge.go:628 +0x428
github.com/cortex/gopass/vendor/github.com/limetext/qml-go._cgoexpwrap_15b304d6206c_hookGoValueCallMethod(0x56129413fa10, 0x4, 0x0, 0x7fff52569490)
	??:0 +0x47
github.com/cortex/gopass/vendor/github.com/limetext/qml-go._Cfunc_applicationExec()
	??:0 +0x41
github.com/cortex/gopass/vendor/github.com/limetext/qml-go.RunArgs(0xc42000c290, 0x1, 0x1, 0x56129274f758, 0x8, 0x1000)
	/home/xxxx/workspace/src/github.com/cortex/gopass/vendor/github.com/limetext/qml-go/bridge.go:98 +0x24d
github.com/cortex/gopass/vendor/github.com/limetext/qml-go.Run(0x56129274f758, 0x56129272dc84, 0x7)
	/home/xxxx/workspace/src/github.com/cortex/gopass/vendor/github.com/limetext/qml-go/bridge.go:58 +0x4f
main.main()
	/home/xxxx/workspace/src/github.com/cortex/gopass/main.go:185 +0x117
@lcmaqueda
Copy link
Collaborator Author

lcmaqueda commented Nov 18, 2016

Also, the value of the selection (test/foobar) corresponds to the last valid selection, and the "Test" value in the info field to the right should be removed/replaced by something else.

lcmaqueda added a commit that referenced this issue Nov 18, 2016
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