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

panic: runtime error: invalid memory address or nil pointer dereference #13

Open
NAlexandrov opened this issue Jun 5, 2023 · 0 comments · May be fixed by #14
Open

panic: runtime error: invalid memory address or nil pointer dereference #13

NAlexandrov opened this issue Jun 5, 2023 · 0 comments · May be fixed by #14

Comments

@NAlexandrov
Copy link

NAlexandrov commented Jun 5, 2023

I compiled a binary from the master branch and caught an error:

> git profile current                                                                                                                                                                                                               
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1003a1b34]

goroutine 1 [running]:
github.com/dotzero/git-profile/git.(*Git).IsRepository(0x140000a4038)
	/Users/dos/www/git-profile/git/git.go:22 +0x54
github.com/dotzero/git-profile/cmd.Current.func1(0x140000c0500?, {0x1003a4e30?, 0x0?, 0x0?})
	/Users/dos/www/git-profile/cmd/current.go:22 +0x54
github.com/spf13/cobra.(*Command).execute(0x140000c0500, {0x100588460, 0x0, 0x0})
	/Users/dos/www/git-profile/vendor/github.com/spf13/cobra/command.go:860 +0x4ac
github.com/spf13/cobra.(*Command).ExecuteC(0x14000098300)
	/Users/dos/www/git-profile/vendor/github.com/spf13/cobra/command.go:974 +0x354
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/dos/www/git-profile/vendor/github.com/spf13/cobra/command.go:902
github.com/dotzero/git-profile/cmd.(*Cmd).Execute(0x14000098300)
	/Users/dos/www/git-profile/cmd/root.go:57 +0x2c
main.main()
	/Users/dos/www/git-profile/main.go:22 +0xc4
NAlexandrov added a commit to NAlexandrov/git-profile that referenced this issue Jun 5, 2023
@NAlexandrov NAlexandrov linked a pull request Jun 5, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant