Skip to content

invalid memory address or nil pointer dereferenceΒ #121

@oshanz

Description

@oshanz

MacOS 15.3.2

➜  ~ splash --day                                                             
🌍  Connecting to Unsplash...panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102682948]

goroutine 1 [running]:
github.com/rawnly/splash-cli/cmd.glob..func1(0x102bb34a0, {0x140000a92f0?, 0x7?, 0x10268695e?})
	/home/runner/go/pkg/mod/github.com/rawnly/splash-cli@v0.0.0-20240121150355-b88d813060bf/cmd/root.go:144 +0x828
github.com/spf13/cobra.(*Command).execute(0x102bb34a0, {0x140000c4010, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0x828
github.com/spf13/cobra.(*Command).ExecuteC(0x102bb34a0)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/spf13/cobra.(*Command).ExecuteContext(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1032
github.com/rawnly/splash-cli/cmd.Execute({0x102869388?, 0x14000151530?})
	/home/runner/go/pkg/mod/github.com/rawnly/splash-cli@v0.0.0-20240121150355-b88d813060bf/cmd/root.go:357 +0x58
main.main()
	/home/runner/go/pkg/mod/github.com/rawnly/splash-cli@v0.0.0-20240121150355-b88d813060bf/main.go:199 +0x4a4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions