Skip to content

Commit 9b89b8a

Browse files
committed
fixed getting null attribute from VPackSlice
1 parent b3115e7 commit 9b89b8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/arangodb/velocypack/VPackSlice.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ public VPackSlice get(final String attribute) throws VPackException {
600600
}
601601
final byte head = head();
602602
VPackSlice result;
603-
if (head == 0x0a) {
603+
if (attribute == null) {
604+
result = NONE_SLICE;
605+
} else if (head == 0x0a) {
604606
// special case, empty object
605607
result = NONE_SLICE;
606608
} else if (head == 0x14) {

0 commit comments

Comments
 (0)