This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch hadoop-3.3.6
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/hadoop-3.3.6 by this push:
new e3564422f23 [fix](getLastTLSExceptionRootCause) fix nullptr issue
(#267)
e3564422f23 is described below
commit e3564422f2379cfd31e85a1ee7b41f01e20456d8
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 e84c1606970..d8b05c52511 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
@@ -863,7 +863,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]