lidavidm commented on code in PR #4398:
URL: https://github.com/apache/arrow-adbc/pull/4398#discussion_r3463261532


##########
java/driver/jni/src/main/cpp/jni_wrapper.cc:
##########
@@ -414,6 +414,7 @@ 
Java_org_apache_arrow_adbc_driver_jni_impl_NativeAdbc_openDatabase(
     jclass nativeHandleKlass = RequireImplClass(env, "NativeDatabaseHandle");
     jmethodID nativeHandleCtor = RequireMethod(env, nativeHandleKlass, 
"<init>", "(J)V");
     const jsize num_params = env->GetArrayLength(parameters);
+    if (env->ExceptionCheck()) return nullptr;

Review Comment:
   The exception is already thrown on the Java side. Throwing a C++ exception 
is unrelated to what happens in Java.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to