Skip to content

Commit

Permalink
fix potential null case from the document on the _chages feed
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Dec 14, 2010
1 parent 6e6c4b5 commit 365836e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -322,7 +322,7 @@ public Void handleResponse(final HttpResponse response)
final long seq = json.getLong("seq");
final String id = json.getString("id");
CouchDocument doc;
if (json.has("doc")) {
if (!json.isNull("doc")) {
doc = new CouchDocument(json.getJSONObject("doc"));
} else {
// include_docs=true doesn't work prior to 0.11.
Expand Down

0 comments on commit 365836e

Please sign in to comment.