8000 Fix NPE · machak/arangodb-java-driver@4878169 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4878169

Browse files
author
mpv1989
committed
Fix NPE
1 parent 5800ecd commit 4878169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected Request getEdgeRequest(final String key, final DocumentReadOptions opt
100100
final DocumentReadOptions params = (options != null ? options : new DocumentReadOptions());
101101
request.putHeaderParam(ArangoRequestParam.IF_NONE_MATCH, params.getIfNoneMatch());
102102
request.putHeaderParam(ArangoRequestParam.IF_MATCH, params.getIfMatch());
103-
if (params.getAllowDirtyRead()) {
103+
if (params.getAllowDirtyRead() == Boolean.TRUE) {
104104
RequestUtils.allowDirtyRead(request);
105105
}
106106
return request;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected Request getVertexRequest(final String key, final DocumentReadOptions o
104104
final DocumentReadOptions params = (options != null ? options : new DocumentReadOptions());
105105
request.putHeaderParam(ArangoRequestParam.IF_NONE_MATCH, params.getIfNoneMatch());
106106
request.putHeaderParam(ArangoRequestParam.IF_MATCH, params.getIfMatch());
107-
if (params.getAllowDirtyRead()) {
107+
if (params.getAllowDirtyRead() == Boolean.TRUE) {
108108
RequestUtils.allowDirtyRead(request);
109109
}
110110
return request;

0 commit comments

Comments
 (0)
0