You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2025/06/23 12:01:18 UTC

(iotdb) branch master updated: Avoid NPE in fetch FI Info

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 817150d29d9 Avoid NPE in fetch FI Info
817150d29d9 is described below

commit 817150d29d93e84db27e0e0129ea547749be6c2e
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Mon Jun 23 20:01:12 2025 +0800

    Avoid NPE in fetch FI Info
---
 .../db/queryengine/execution/fragment/FragmentInstanceContext.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java
index 4d0a0a07752..55df223db17 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java
@@ -417,7 +417,7 @@ public class FragmentInstanceContext extends QueryContext {
 
     for (Throwable t : failures) {
       Throwable failure = getRootCause(t);
-      if (failureCause.isEmpty()) {
+      if (failureCause.isEmpty() && failure.getMessage() != null) {
         failureCause = failure.getMessage();
       }
       failureInfoList.add(FragmentInstanceFailureInfo.toFragmentInstanceFailureInfo(failure));