Skip to content

Commit 93acce6

Browse files
committed
fixed ArangoDBException cause
1 parent 2c53d6a commit 93acce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/arangodb/ArangoDBException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private static ArangoDBException of(String message, Throwable t, Long requestId)
144144
}
145145

146146
private static Throwable unwrapCause(Throwable t) {
147-
if (t instanceof ArangoDBException) {
147+
if (t instanceof ArangoDBException && t.getCause() != null) {
148148
return unwrapCause(t.getCause());
149149
}
150150
return t;

0 commit comments

Comments
 (0)