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

fix(jruby): first_element_child properly returns nil #2844

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Fixes #2802

On JRuby, first_element_child properly returns nil when only non-element children exist. Previously this NPEd.

Have you included adequate test coverage?

Yes!

Does this change affect the behavior of either the C or the Java implementations?

This brings the Java implementation into alignment with the C implementation.

when only non-element children exist. Previously this NPEd.
@flavorjones flavorjones added this to the v1.15.0 milestone Apr 8, 2023
@flavorjones flavorjones merged commit f671857 into main Apr 8, 2023
@flavorjones flavorjones deleted the 2808-java-first-element-child-npe branch April 8, 2023 02:06
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 this pull request may close these issues.

[bug] first_element_child fails with NullPointerException on JRuby
1 participant