This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
forked from simeji/jid
-
Notifications
You must be signed in to change notification settings - Fork 33
Fails on empty lists or objects #13
Labels
Comments
$ echo '[]' | jiq
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/fiatjaf/jiq.(*Engine).makeCandidates(0xc0000d2000)
/Users/aes/go/src/github.com/fiatjaf/jiq/engine.go:201 +0x560
github.com/fiatjaf/jiq.(*Engine).Run(0xc0000d2000, 0x0)
/Users/aes/go/src/github.com/fiatjaf/jiq/engine.go:70 +0x118
main.run(0xc0000d2000, 0xc00008c000, 0xc000092010)
/Users/aes/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:53 +0x32
main.main()
/Users/aes/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:49 +0x14b I guess fixing this simple bug would be a good excuse to learn go? |
Probably not, too irrelevant, and yet confusing. Fixed in b24f06f |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: