Skip to content

BUG: Panic if you try and delete a resource and don't specify enough ids. #137

@steve-r-west

Description

@steve-r-west
epcc delete user-authentication-info 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x801241]

goroutine 1 [running]:
github.com/elasticpath/epcc-cli/cmd.glob..func10(0xbfa360?, {0xc000241240?, 0x1?, 0x1?})
        github.com/elasticpath/epcc-cli@v0.6.1/cmd/delete.go:24 +0x41
github.com/spf13/cobra.(*Command).execute(0xbfa360, {0xc000241220, 0x1, 0x1})
        github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xbf8f60)
        github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.4.0/command.go:902
github.com/elasticpath/epcc-cli/cmd.Execute()
        github.com/elasticpath/epcc-cli@v0.6.1/cmd/root.go:99 +0x25
main.main()
        gitlab.elasticpath.com/commerce-cloud/playground/epcc-cli-internal/main.go:9 +0x17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions