This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new b9cea12c638 branch-4.0: [bug](avro) fix avro jni reader coredump with
nullptr (#64699) (#65512)
b9cea12c638 is described below
commit b9cea12c638027b743af77d1848cd34ef8a3c846
Author: zhangstar333 <[email protected]>
AuthorDate: Tue Jul 14 15:21:07 2026 +0800
branch-4.0: [bug](avro) fix avro jni reader coredump with nullptr (#64699)
(#65512)
cherry-pick from master https://github.com/apache/doris/pull/64699#top
---
be/src/vec/exec/jni_connector.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/exec/jni_connector.cpp
b/be/src/vec/exec/jni_connector.cpp
index 97bd476289f..2cad5967e86 100644
--- a/be/src/vec/exec/jni_connector.cpp
+++ b/be/src/vec/exec/jni_connector.cpp
@@ -94,7 +94,9 @@ Status JniConnector::open(RuntimeState* state,
RuntimeProfile* profile) {
}
RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env));
SCOPED_RAW_TIMER(&_jni_scanner_open_watcher);
- _scanner_params.emplace("time_zone", _state->timezone());
+ if (_state) { // maybe nullptr when init_fetch_table_schema_reader
+ _scanner_params.emplace("time_zone", _state->timezone());
+ }
RETURN_IF_ERROR(_init_jni_scanner(env, batch_size));
// Call org.apache.doris.common.jni.JniScanner#open
env->CallVoidMethod(_jni_scanner_obj, _jni_scanner_open);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]