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

Show note content Error #23

Open
alvin2ye opened this issue Apr 15, 2021 · 0 comments
Open

Show note content Error #23

alvin2ye opened this issue Apr 15, 2021 · 0 comments

Comments

@alvin2ye
Copy link

➜  ~ clinote note new --title "note title"
➜  ~ clinote note "note title"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x11f6f2b]

goroutine 1 [running]:
github.com/TcM1911/clinote.GetNoteWithContent(0x1750820, 0xc00001faa0, 0x17507c0, 0xc0002c80a0, 0x7ffeefbff945, 0xa, 0xc00011fca8, 0xc0001660a0, 0xa)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/note.go:173 +0x8b
main.getNote(0x1bf0d80, 0xc000075450, 0x1, 0x1)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/note.go:63 +0x1e1
main.glob..func10(0x1bf0d80, 0xc000075450, 0x1, 0x1)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/note.go:37 +0x67
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).execute(0x1bf0d80, 0xc000075410, 0x1, 0x1, 0x1bf0d80, 0xc000075410)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:636 +0x241
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1bf11c0, 0xb, 0x16b1b00, 0x16ceebe)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:722 +0x2cc
github.com/TcM1911/clinote/vendor/github.com/spf13/cobra.(*Command).Execute(0x1bf11c0, 0x1007510, 0xc0000a2058)
	/Users/travis/gopath/src/github.com/TcM1911/clinote/vendor/github.com/spf13/cobra/command.go:681 +0x2b
main.Execute()
	/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/root.go:49 +0x2d
main.main()
	/Users/travis/gopath/src/github.com/TcM1911/clinote/cmd/main.go:21 +0x20
➜  ~

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

1 participant