Skip to content

Bug: ultralist e #268

Open
igbanam/ultralist
#1
@Mooie

Description

Typing "ultralist e" with no further arguments throws an error with the following output:

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

goroutine 1 [running]:
github.com/ultralist/ultralist/cmd.init.7.func1(0x140001bedc0, {0x10353dd50, 0x0, 0x0})
github.com/ultralist/ultralist/cmd/edit.go:44 +0x224
github.com/spf13/cobra.(*Command).execute(0x140001bedc0, {0x10353dd50, 0x0, 0x0})
github.com/spf13/cobra@v1.0.0/command.go:846 +0x640
github.com/spf13/cobra.(*Command).ExecuteC(0x103504d80)
github.com/spf13/cobra@v1.0.0/command.go:950 +0x404
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.0.0/command.go:887
github.com/ultralist/ultralist/cmd.Execute()
github.com/ultralist/ultralist/cmd/root.go:23 +0x30
main.main()
github.com/ultralist/ultralist/main.go:8 +0x20

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions