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

morningman pushed a commit to branch hadoop-3.4.2
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git

commit 06c2cc2736d5fdc51926077f2e4f4041c146d984
Author: Tiewei Fang <[email protected]>
AuthorDate: Fri Dec 27 16:36:38 2024 +0800

    [fix](getLastTLSExceptionRootCause) fix nullptr issue  (#267)
---
 .../hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c
 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c
index 98962f20b6e..130258a28e1 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/jni_helper.c
@@ -874,7 +874,7 @@ char* getLastTLSExceptionRootCause()
         }
         mutexUnlock(&jvmMutex);
     }
-    return state->lastExceptionRootCause;
+    return state ? state->lastExceptionRootCause : NULL;
 }
 
 char* getLastTLSExceptionStackTrace()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to