```panic: runtime error: invalid memory address or...
# ask-the-community
s
Copy code
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x138ddbb]

goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/core.CommandContext.AdminClient(...)|github.com/flyteorg/flytectl/cmd/core.CommandContext.AdminClient(...)>
	/home/runner/work/flytectl/flytectl/cmd/core/cmd_ctx.go:57
<http://github.com/flyteorg/flytectl/cmd/register.register({0x252bf70|github.com/flyteorg/flytectl/cmd/register.register({0x252bf70>, 0xc000116000}, {0x251e598?, 0xc0008d91a0?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}, ...}, ...)
	/home/runner/work/flytectl/flytectl/cmd/register/register_util.go:188 +0x37b
<http://github.com/flyteorg/flytectl/cmd/register.registerFile({0x252bf70|github.com/flyteorg/flytectl/cmd/register.registerFile({0x252bf70>, 0xc000116000}, {0xc000166230, _}, {_, _, _}, {0x0, {0x0, 0x0}, ...}, ...)
	/home/runner/work/flytectl/flytectl/cmd/register/register_util.go:606 +0x95b
<http://github.com/flyteorg/flytectl/cmd/register.Register({0x252bf70|github.com/flyteorg/flytectl/cmd/register.Register({0x252bf70>, 0xc000116000}, {0xc0005d9b80?, 0x0?, 0x0?}, 0x36246c0, {0x0, {0x0, 0x0}, {0x0, ...}, ...})
	/home/runner/work/flytectl/flytectl/cmd/register/files.go:160 +0x6ca
<http://github.com/flyteorg/flytectl/cmd/register.registerFromFilesFunc(|github.com/flyteorg/flytectl/cmd/register.registerFromFilesFunc(>{0x252bf70, 0xc000116000}, {0xc0005d9b80, 0x1, 0xa}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
	/home/runner/work/flytectl/flytectl/cmd/register/files.go:118 +0xcd
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc00064f900|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc00064f900>?, {0xc0005d9b80, 0x1, 0xa})
	/home/runner/work/flytectl/flytectl/cmd/core/cmd.go:70 +0x93d
<http://github.com/spf13/cobra.(*Command).execute(0xc00064f900|github.com/spf13/cobra.(*Command).execute(0xc00064f900>, {0xc0005d9a40, 0xa, 0xa})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
<http://github.com/spf13/cobra.(*Command).ExecuteC(0xc0008fbb80)|github.com/spf13/cobra.(*Command).ExecuteC(0xc0008fbb80)>
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
	/home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x1e
main.main()
	/home/runner/work/flytectl/flytectl/main.go:12 +0x1d
106 Views