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

jruby crashes with empty html documents #699

Closed
tedu opened this issue Jun 12, 2012 · 2 comments
Closed

jruby crashes with empty html documents #699

tedu opened this issue Jun 12, 2012 · 2 comments

Comments

@tedu
Copy link

tedu commented Jun 12, 2012

test below. With ruby 1.8.7, prints "", "", "x". With jruby, I get a native java exception stacktrace.

 require "nokogiri"

 p Nokogiri::HTML.parse(nil).text
 p Nokogiri::HTML.parse("").text
 p Nokogiri::HTML.parse("x").text
@yokolet
Copy link
Member

yokolet commented Jun 12, 2012

Thanks for reporting!

I fixed this bug in rev. 96f81d3 . Nokogiri 1.5.5.rc1 won't have this issue.

@yokolet yokolet closed this as completed Jun 12, 2012
@yokolet
Copy link
Member

yokolet commented Jun 12, 2012

Sorry, I'm a bit late for 1.5.5.rc1. Next release won't have this issue. :)

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

No branches or pull requests

2 participants