This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a commit to branch npe-n
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/npe-n by this push:
new db34267849b null
db34267849b is described below
commit db34267849b772436acabd11c3cdbbcfa4f51f39
Author: Caideyipi <[email protected]>
AuthorDate: Fri Jan 9 11:59:27 2026 +0800
null
---
.../iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java
index 9e54c1087ac..2becc993968 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java
@@ -31,6 +31,8 @@ import org.apache.iotdb.pipe.api.exception.PipeException;
import org.apache.tsfile.file.metadata.IDeviceID;
+import javax.annotation.Nullable;
+
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -67,7 +69,10 @@ public class IoTDBTreePattern extends
IoTDBTreePatternOperations {
//////////////////////////// Tree Pattern Operations
////////////////////////////
public static <T> List<T> applyReversedIndexesOnList(
- final List<Integer> filteredIndexes, final List<T> originalList) {
+ final List<Integer> filteredIndexes, final @Nullable List<T>
originalList) {
+ if (Objects.isNull(originalList)) {
+ return null;
+ }
// No need to sort, the caller guarantees that the filtered sequence ==
original sequence
final List<T> filteredList = new ArrayList<>(originalList.size() -
filteredIndexes.size());
int filteredIndexPos = 0;