Skip to content

Commit 4f57553

Browse files
authored
fix empty propertiesValue out of bound (#362)
1 parent e9fc9d9 commit 4f57553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/protocol/payload/impl/execute/ObTableSingleOpEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public void setAggPropertiesNames(List<String> columnNames) {
410410

411411
public Map<String, Object> getSimpleProperties() {
412412
Map<String, Object> values = new HashMap<String, Object>((int) propertiesValues.size());
413-
for (int i = 0; i < propertiesNames.size(); i++) {
413+
for (int i = 0; i < propertiesNames.size() && i < propertiesValues.size(); i++) {
414414
values.put(propertiesNames.get(i), propertiesValues.get(i).getValue());
415415
}
416416
return values;

0 commit comments

Comments
 (0)