This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new eb063f13b10 Add a judgment in order to avoid occur NPE when one value
of measurementSchemas is null (#15574) (#16813)
eb063f13b10 is described below
commit eb063f13b10124fc5412728936284cb60fe63daa
Author: Jiang Tian <[email protected]>
AuthorDate: Thu Nov 27 09:46:20 2025 +0800
Add a judgment in order to avoid occur NPE when one value of
measurementSchemas is null (#15574) (#16813)
Co-authored-by: libo <[email protected]>
---
.../iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java
index 410ac5376c9..c29eb15371c 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/InsertNodeMemoryEstimator.java
@@ -574,6 +574,10 @@ public class InsertNodeMemoryEstimator {
RamUsageEstimator.alignObjectSize(
NUM_BYTES_ARRAY_HEADER + NUM_BYTES_OBJECT_REF * values.length);
for (int i = 0; i < values.length; i++) {
+ if (measurementSchemas[i] == null || measurementSchemas[i].getType() ==
null) {
+ size += NUM_BYTES_OBJECT_HEADER;
+ continue;
+ }
switch (measurementSchemas[i].getType()) {
case INT64:
case TIMESTAMP: