Skip to content

Commit ff165cd

Browse files
author
chengyitian
committed
AJ-803: support iotany contains 'void';
1 parent bc3e539 commit ff165cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/xxdb/data/BasicIotAnyVector.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ public Entity get(int index) {
7777
BasicInt curDataType = (BasicInt) indexsDataType.get(index);
7878
BasicInt curIndex = (BasicInt) indexs.get(index);
7979

80-
return ((Vector) subVector.get(curDataType.getInt())).get(curIndex.getInt());
80+
if (curDataType.getInt() == 0)
81+
return new Void();
82+
else
83+
return ((Vector) subVector.get(curDataType.getInt())).get(curIndex.getInt());
8184
}
8285

8386
public String getString(int index) {

0 commit comments

Comments
 (0)