This is an automated email from the ASF dual-hosted git repository.
Caideyipi pushed a commit to branch fix-n
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/fix-n by this push:
new e78316e36f6 fix
e78316e36f6 is described below
commit e78316e36f6de23c865fe3c1bffcb9be0e8ab4c3
Author: Caideyipi <[email protected]>
AuthorDate: Fri May 1 15:05:03 2026 +0800
fix
---
.../db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java
index 1f22c306303..17bb82bee04 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/attribute/DeviceAttributeStore.java
@@ -138,6 +138,9 @@ public class DeviceAttributeStore implements
IDeviceAttributeStore {
long memUsage = MAP_SIZE + RamUsageEstimator.NUM_BYTES_OBJECT_REF;
final Map<String, Binary> attributeMap = new HashMap<>();
for (int i = 0; i < nameList.size(); i++) {
+ if (valueList.length <= i) {
+ break;
+ }
if (valueList[i] == null || valueList[i] == Constants.NONE) {
continue;
}