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: invalid memory address or nil pointer dereference #161

Closed
chrisjaimon2012 opened this issue Feb 23, 2022 · 1 comment
Closed

panic: invalid memory address or nil pointer dereference #161

chrisjaimon2012 opened this issue Feb 23, 2022 · 1 comment

Comments

@chrisjaimon2012
Copy link
Contributor

Version: >6.6

For a README files without metadata, the expected way it handles error would be

FATAL specified file doesn't contain metadata and URL is not specified via command line or doesn't contain pageId GET-parameter

But on builds after v6.6, it panics

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x100de46c8 ]

goroutine 1 [running]:
main.processFile({0x16b523a13, 0x9}, 0x1400037c040, {{0x16b523a13, 0x9}, 0x0, 0x0, 0x1, 0x0, 0x0, ...}, ...)
	/home/runner/work/mark/mark/main.go:182 +0x1a8
main.main()
	/home/runner/work/mark/mark/main.go:150 +0x610

8d58ff2 seems to be the breaking commit, will raise a PR for a fix soon

chrisjaimon2012 added a commit to quantum-sec/mark that referenced this issue Feb 23, 2022
chrisjaimon2012 added a commit to quantum-sec/mark that referenced this issue Feb 23, 2022
chrisjaimon2012 added a commit to quantum-sec/mark that referenced this issue Feb 24, 2022
@kovetskiy
Copy link
Owner

Should be fixed now by #162

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

2 participants