Skip to content

Commit

Permalink
Fix for issue#648. Adds Nil check to NokogiriHelpers.rubyStringToStri…
Browse files Browse the repository at this point in the history
…ng(IRubyObject)
  • Loading branch information
yokolet committed Apr 1, 2012
1 parent 493425f commit 599a2af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/java/nokogiri/internals/NokogiriHelpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private static Charset getCharsetUTF8() {
* this for us.
*/
public static String rubyStringToString(IRubyObject str) {
if (str.isNil()) return null;
//return rubyStringToString(str.convertToString());
return toJavaString(str.convertToString());
}
Expand Down

0 comments on commit 599a2af

Please sign in to comment.