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

NPE when using functions #62

Open
MaximPixel opened this issue Jun 18, 2024 · 1 comment
Open

NPE when using functions #62

MaximPixel opened this issue Jun 18, 2024 · 1 comment

Comments

@MaximPixel
Copy link

There is an unhandled error in Xsoup when using XPath expressions with query in any functions. For example:
//tr[contains(td[1]/text(), 'something')]/td[2]/text()
This causes a NullPointerException at line 53 in CombiningEvaluator due to a null return value in the XPathParser::byFunction method.

@sutra
Copy link
Collaborator

sutra commented Jun 18, 2024

The contains supports AttributeWithValueContaining only:

return new Evaluator.AttributeWithValueContaining(param[0], param[1]);

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