[fix](udf) fix java-udf coredump as get env return nullptr (#30986)

This commit is contained in:
zhangstar333
2024-02-19 17:19:05 +08:00
committed by yiguolei
parent 277de979c3
commit 8a3e6644d4
4 changed files with 13 additions and 12 deletions

View File

@ -127,7 +127,7 @@ Status JavaFunctionCall::close(FunctionContext* context,
// JNIContext own some resource and its release method depend on JavaFunctionCall
// has to release the resource before JavaFunctionCall is deconstructed.
if (jni_ctx) {
jni_ctx->close();
RETURN_IF_ERROR(jni_ctx->close());
}
return Status::OK();
}