summaryrefslogtreecommitdiff
path: root/bridges/source/jni_uno/jni_bridge.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2002-11-18 12:07:52 +0000
committerDaniel Boelzle <dbo@openoffice.org>2002-11-18 12:07:52 +0000
commite8f0d2f7829f481144c1b103816de3d5adc325bd (patch)
tree37cdaefc1ddf094ae787d42360b6f316d6e82bef /bridges/source/jni_uno/jni_bridge.cxx
parent0c38ca4412531adafdb9cbac9dfa7f6f8e0d9882 (diff)
#105202# fixed missing jni_env
Diffstat (limited to 'bridges/source/jni_uno/jni_bridge.cxx')
-rw-r--r--bridges/source/jni_uno/jni_bridge.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx
index dd0ae7ff43c8..9ac0091fd6a9 100644
--- a/bridges/source/jni_uno/jni_bridge.cxx
+++ b/bridges/source/jni_uno/jni_bridge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: jni_bridge.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: dbo $ $Date: 2002-11-15 16:12:20 $
+ * last change: $Author: dbo $ $Date: 2002-11-18 13:07:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -292,11 +292,12 @@ JNI_attach::JNI_attach( uno_Environment * java_env )
pair< JavaVMContext::t_map::iterator, bool > insertion(
m_context->_registeredThreadMap.insert(
JavaVMContext::t_map::value_type(
- m_thread_id, JavaVMContext::t_entry( 1, m_env ) ) ) );
+ m_thread_id, JavaVMContext::t_entry( 1, 0 ) ) ) );
if (insertion.second)
{
m_revoke = true;
jint res = m_vm->AttachCurrentThread( (void **)&m_env, 0 );
+ insertion.first->second.second = m_env;
if (0 < res)
{
m_detach = false;