Skip to content
This repository was archived by the owner on Nov 26, 2023. It is now read-only.
This repository was archived by the owner on Nov 26, 2023. It is now read-only.

Fails on empty lists or objects #13

@bastianbowe2000

Description

@bastianbowe2000
$ echo '{}'|jiq
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/fiatjaf/jiq.(*Engine).makeCandidates(0xc4200ae000)
	/home/babowe/go/src/github.com/fiatjaf/jiq/engine.go:195 +0x56c
github.com/fiatjaf/jiq.(*Engine).Run(0xc4200ae000, 0x0)
	/home/babowe/go/src/github.com/fiatjaf/jiq/engine.go:70 +0x13e
main.run(0xc4200ae000, 0xc42000c000, 0xc42000e1b0)
	/home/babowe/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:53 +0x2f
main.main()
	/home/babowe/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:49 +0x22f

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions