-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Running otel-cli exec not-existant will throw a null pointer exception.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x97819b]
goroutine 1 [running]:
github.com/equinix-labs/otel-cli/otelcli.doExec(0xc000192f00?, {0xc000210ad0, 0x1, 0x1})
/home/atobey/src/otel-cli/otelcli/exec.go:149 +0x109b
github.com/spf13/cobra.(*Command).execute(0xc000238900, {0xc000210aa0, 0x1, 0x1})
/home/atobey/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0xaa3
github.com/spf13/cobra.(*Command).ExecuteC(0xc000005800)
/home/atobey/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/home/atobey/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/home/atobey/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1032
github.com/equinix-labs/otel-cli/otelcli.Execute({0xc0000483c0, 0x43})
/home/atobey/src/otel-cli/otelcli/root.go:89 +0x188
main.main()
/home/atobey/src/otel-cli/main.go:17 +0x45Metadata
Metadata
Assignees
Labels
No labels