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

Java::JavaLang::NullPointerException on JRuby #81

Open
rsofista opened this issue May 15, 2017 · 0 comments
Open

Java::JavaLang::NullPointerException on JRuby #81

rsofista opened this issue May 15, 2017 · 0 comments

Comments

@rsofista
Copy link

When you don't put 'div' as a tag in the initializer like:

require 'rubygems'
require 'readability'
require 'open-uri'
    
source = open('https://developers.google.com/custom-search/docs/tutorial/creatingcse').read
puts Readability::Document.new(source, tags: []).content

it trows the error:
NullPointerException:
from nokogiri.internals.SaveContextVisitor.isHtmlScript(SaveContextVisitor.java:741)

you can put any tags you want, if you don't add 'div' the error happens

using jruby-9.1.6.0 [ x86_64 ]

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

1 participant