Permalink
Browse files

fix null test.

  • Loading branch information...
1 parent 2a15f14 commit 502f37bd0a682c48755952baf8656c5077af1147 Robert Newson committed Nov 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/github/rnewson/couchdb/lucene/DocumentConverter.java
@@ -137,7 +137,7 @@ private Scriptable convertArray(final JSONArray array) throws JSONException {
}
private Scriptable convertObject(final JSONObject obj) throws JSONException {
- if (obj == null) {
+ if (obj == JSONObject.NULL) {
return null;
}
final Scriptable result = context.newObject(scope);

0 comments on commit 502f37b

Please sign in to comment.