You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2025/10/20 13:07:13 UTC
(doris-thirdparty) 13/14: [fix](getLastTLSExceptionRootCause) fix nullptr issue (#267)
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 <fa...@selectdb.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org