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

输入含protocol的不支持地址会出invalid memory address or nil pointer dereference error而非显示“不支持”信息 #754

Closed
fireattack opened this issue Jul 24, 2020 · 1 comment · Fixed by #907

Comments

@fireattack
Copy link
Contributor

fireattack commented Jul 24, 2020

Expected:

G:\>annie google.com
Downloading �[36mgoogle.com�[0m error:
�[31mparse google.com: invalid URI for request�[0m

Unexpected:

G:\>annie "https://google.com"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x8b828c]

goroutine 1 [running]:
github.com/iawia002/annie/extractors.Extract(0xc000070140, 0x12, 0x0, 0x0, 0x0, 0x1, 0x0, 0xa, 0x0, 0x0, ...)
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/extractors/extractors.go:104 +0x2fc
main.download(0xc000070140, 0x12, 0x1, 0x1)
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/main.go:131 +0x194
main.main()
        /Users/mac/iawia002/go/src/github.com/iawia002/annie/main.go:253 +0x274

版本:built from master

@snylonue
Copy link
Contributor

snylonue commented Aug 8, 2020

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.

2 participants