Skip to content

Commit b25f87a

Browse files
author
mpv1989
committed
Fix ArangoDatabase.transaction(): ignore null result
1 parent c3229d7 commit b25f87a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v4.2.x (xxxx-xx-xx)
2+
---------------------------
3+
* fixed ArangoDatabase.transaction(): ignore null result
4+
15
v4.2.3 (2017-07-31)
26
---------------------------
37
* added ArangoDatabase.getPermissions(String)

src/main/java/com/arangodb/internal/InternalArangoDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public T deserialize(final Response response) throws VPackException {
304304
final VPackSlice body = response.getBody();
305305
if (body != null) {
306306
final VPackSlice result = body.get(ArangoDBConstants.RESULT);
307-
if (!result.isNone()) {
307+
if (!result.isNone() && !result.isNull()) {
308308
return util().deserialize(result, type);
309309
}
310310
}

0 commit comments

Comments
 (0)