Skip to content

Commit b6fd3ef

Browse files
committed
fixed getVertex: entity was null
1 parent 6333986 commit b6fd3ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/arangodb/impl/InternalGraphDriverImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ public <T> DocumentEntity<T> createVertex(
340340
if (!res.isJsonResponse()) {
341341
throw new ArangoException("unknown error");
342342
}
343-
return createEntity(res, VertexEntity.class, vertex.getClass());
343+
DocumentEntity<T> result = createEntity(res, VertexEntity.class, vertex.getClass());
344+
result.setEntity(vertex);
345+
return result;
344346
}
345347

346348
@Override

0 commit comments

Comments
 (0)