Skip to content

Commit ad45bd8

Browse files
committed
some docu resulting from issue#2
1 parent 0114721 commit ad45bd8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,15 @@ Now an edge can be created to set a relation between vertices
348348
null,
349349
null);
350350
```
351+
352+
# Known bugs
353+
Due to deserializition of some attribute combinations of name/type may lead to exceptions.
354+
These combinations are:
355+
356+
| attribute name | attribute type |
357+
|----------------|----------------|
358+
| error | boolean |
359+
| code | numeric |
360+
| errorNum | numeric |
361+
| errorMessage | String |
362+
| etag | numeric |

src/main/java/com/arangodb/entity/EntityDeserializers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private static Class<?> backParameterized() {
136136
}
137137

138138
private static <T extends BaseEntity> T deserializeBaseParameter(JsonObject obj, T entity) {
139-
if (obj.has("error")) {
139+
if (obj.has("error") && obj.getAsJsonPrimitive("error").isBoolean()) {
140140
entity.error = obj.getAsJsonPrimitive("error").getAsBoolean();
141141
}
142142
if (obj.has("code") && obj.getAsJsonPrimitive("code").isNumber()) {

0 commit comments

Comments
 (0)