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

nil pointer dereference at parse.go:145 #75

Closed
hokumski opened this issue Dec 8, 2021 · 3 comments
Closed

nil pointer dereference at parse.go:145 #75

hokumski opened this issue Dec 8, 2021 · 3 comments
Labels

Comments

@hokumski
Copy link

hokumski commented Dec 8, 2021

Hi!

There's possible "nil pointer dereference" error at line 145 of parse.go, p.prev could be nil

AddSibling(p.prev.Parent, node)

(I have XML file causing this error)

@zhengchun
Copy link
Contributor

@hokumski , Please provide your XML file.

@hokumski
Copy link
Author

hokumski commented Dec 9, 2021

v1.3.8

parsed, err := xmlquery.Parse(strings.NewReader(string(xmlDataBytes)))

publication-6430.xml.zip

@zhengchun
Copy link
Contributor

v1.3.9 to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants