Fix crashing when joining two JDBC tables..

Was in close (the virtual machine could have been detached.
  modified:   storage/connect/jdbconn.cpp
This commit is contained in:
Olivier Bertrand 2017-02-24 23:15:28 +01:00
commit 62cd105689

View file

@ -1165,6 +1165,9 @@ void JDBConn::Close()
jint rc;
jmethodID did = nullptr;
// Could have been detached in case of join
rc = jvm->AttachCurrentThread((void**)&env, nullptr);
if (gmID(m_G, did, "JdbcDisconnect", "()I"))
printf("%s\n", Msg);
else if (Check(env->CallIntMethod(job, did)))