Permalink
Browse files

fix NULL handling for test suite.

  • Loading branch information...
1 parent 6f6d54f commit 51466005593d1acba4c808aa96a9b5e21afbd8fb Robert Newson committed Nov 12, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/github/rnewson/couchdb/lucene/DocumentConverter.java
@@ -118,6 +118,8 @@ public DocumentConverter(final Context context, final View view) throws IOExcept
private Object convert(final Object obj) throws JSONException {
if (obj instanceof JSONArray) {
return convertArray((JSONArray) obj);
+ } else if (obj == JSONObject.NULL) {
+ return null;
} else if (obj instanceof JSONObject) {
return convertObject((JSONObject) obj);
} else {

0 comments on commit 5146600

Please sign in to comment.