Skip to content

Commit

Permalink
Fix ArangoDatabase.transaction(): ignore null result
Browse files Browse the repository at this point in the history
  • Loading branch information
mpv1989 committed Aug 14, 2017
1 parent c3229d7 commit b25f87a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v4.2.x (xxxx-xx-xx)
---------------------------
* fixed ArangoDatabase.transaction(): ignore null result

v4.2.3 (2017-07-31)
---------------------------
* added ArangoDatabase.getPermissions(String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public T deserialize(final Response response) throws VPackException {
final VPackSlice body = response.getBody();
if (body != null) {
final VPackSlice result = body.get(ArangoDBConstants.RESULT);
if (!result.isNone()) {
if (!result.isNone() && !result.isNull()) {
return util().deserialize(result, type);
}
}
Expand Down

0 comments on commit b25f87a

Please sign in to comment.