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

CLI panics on domain update when domain doesn't exist #711

Closed
mfateev opened this issue May 2, 2018 · 0 comments
Closed

CLI panics on domain update when domain doesn't exist #711

mfateev opened this issue May 2, 2018 · 0 comments
Assignees

Comments

@mfateev
Copy link
Contributor

mfateev commented May 2, 2018

maxim-C02R910HG8WM:cadence maximfateev$ ./cadence -do sample domain update -rd 1
Domain sample does not exist.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x166927a]

goroutine 1 [running]:
github.com/uber/cadence/vendor/go.uber.org/cadence/.gen/go/shared.(*DomainInfo).GetDescription(...)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/go.uber.org/cadence/.gen/go/shared/types.go:8399
github.com/uber/cadence/tools/cli.UpdateDomain(0xc420091080)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/tools/cli/commands.go:208 +0x20a
github.com/uber/cadence/tools/cli.newDomainCommands.func2(0xc420091080)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/tools/cli/domain.go:76 +0x2b
github.com/uber/cadence/vendor/github.com/urfave/cli.HandleAction(0x16f4fa0, 0x186b6e8, 0xc420091080, 0xc420068d00, 0x0)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/app.go:493 +0x7c
github.com/uber/cadence/vendor/github.com/urfave/cli.Command.Run(0x182b685, 0x6, 0x0, 0x0, 0xc4202c3f00, 0x2, 0x2, 0x183de0f, 0x1f, 0x0, ...)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/command.go:212 +0xa95
github.com/uber/cadence/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc420081a00, 0xc420090dc0, 0x0, 0x0)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/app.go:380 +0xa7b
github.com/uber/cadence/vendor/github.com/urfave/cli.Command.startApp(0x182aea5, 0x6, 0x0, 0x0, 0xc4203648e0, 0x1, 0x1, 0x1836afa, 0x16, 0x0, ...)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/command.go:299 +0x920
github.com/uber/cadence/vendor/github.com/urfave/cli.Command.Run(0x182aea5, 0x6, 0x0, 0x0, 0xc4203648e0, 0x1, 0x1, 0x1836afa, 0x16, 0x0, ...)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/command.go:98 +0x13cf
github.com/uber/cadence/vendor/github.com/urfave/cli.(*App).Run(0xc420081860, 0xc420010070, 0x7, 0x7, 0x0, 0x0)
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/vendor/github.com/urfave/cli/app.go:256 +0x6f8
main.main()
/Users/maximfateev/cadencedemo/src/github.com/uber/cadence/cmd/tools/cli/main.go:33 +0x4b
maxim-C02R910HG8WM:cadence maximfateev$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants