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

Fix panic in set beneficiary CLI command #2435

Merged
merged 1 commit into from
Jul 3, 2020
Merged

Conversation

soffokl
Copy link
Member

@soffokl soffokl commented Jul 3, 2020

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

goroutine 1 [running]:
github.com/mysteriumnetwork/node/cmd/commands/cli.(*cliApp).setBeneficiary(0xc000641220, 0xc00020c790, 0x1, 0x1)
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/commands/cli/command_identities.go:267 +0x521
github.com/mysteriumnetwork/node/cmd/commands/cli.(*cliApp).identities(0xc000641220, 0xc00067f40b, 0x36)
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/commands/cli/command_identities.go:66 +0x4d2
github.com/mysteriumnetwork/node/cmd/commands/cli.(*cliApp).handleActions(0xc000641220, 0xc00067f400, 0x41)
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/commands/cli/command.go:191 +0x611
github.com/mysteriumnetwork/node/cmd/commands/cli.(*cliApp).Run(0xc000641220, 0x56a07a0, 0xc00007a000, 0xc0009113e0, 0x1c)
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/commands/cli/command.go:140 +0x3a0
github.com/mysteriumnetwork/node/cmd/commands/cli.NewCommand.func1(0xc000209f00, 0x0, 0x0)
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/commands/cli/command.go:72 +0x1ce
github.com/urfave/cli/v2.(*Command).Run(0xc000035b00, 0xc000209e40, 0x0, 0x0)
	/Users/soffokl/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/command.go:161 +0x4e0
github.com/urfave/cli/v2.(*App).RunContext(0xc00017c480, 0x56982e0, 0xc00003c090, 0xc000032090, 0x9, 0x9, 0x0, 0x0)
	/Users/soffokl/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:302 +0x814
github.com/urfave/cli/v2.(*App).Run(...)
	/Users/soffokl/go/pkg/mod/github.com/urfave/cli/v2@v2.1.1/app.go:211
main.main()
	/Users/soffokl/go/src/github.com/mysteriumnetwork/node/cmd/mysterium_node/mysterium_node.go:56 +0x87

@soffokl soffokl added the bug label Jul 3, 2020
@soffokl soffokl self-assigned this Jul 3, 2020
@soffokl soffokl merged commit d2fd2e5 into master Jul 3, 2020
@soffokl soffokl deleted the cli-set-beneficiary branch July 3, 2020 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants