Skip to content

Check hasNext before close ArangoCursor #223

@joscht-73

Description

@joscht-73

Prevent ArangoDbException "Response: 404, Error: 1600 - cursor not found" if ArangoCursor is already deleted/closed at server.
The try-with-resources Statement throws an ArangoDbException if ArangoCursor has an id and hasNext returns false.
try (ArangoCursor<BaseDocument> cursor = ...) { // some code }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions