Tag: cws_src680_dba201b
User: oj      
Date: 05/07/06 04:03:08

Modified:
 /dba/connectivity/source/commontools/
  CommonTools.cxx

Log:
 #i49690# check if jvm is null

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: CommonTools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/CommonTools.cxx?r1=1.18&r2=1.18.58.1
Delta lines:  +14 -11
---------------------
--- CommonTools.cxx     16 Feb 2005 17:22:51 -0000      1.18
+++ CommonTools.cxx     6 Jul 2005 11:03:05 -0000       1.18.58.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: CommonTools.cxx,v $
  *
- *  $Revision: 1.18 $
+ *  $Revision: 1.18.58.1 $
  *
- *  last change: $Author: vg $ $Date: 2005/02/16 17:22:51 $
+ *  last change: $Author: oj $ $Date: 2005/07/06 11:03:05 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -331,6 +331,8 @@
        {
                sal_Bool bRet = sal_False;
 #ifdef SOLAR_JAVA
+               if ( _pJVM.is() )
+               {
                jvmaccess::VirtualMachine::AttachGuard aGuard(_pJVM);
                JNIEnv* pEnv = aGuard.getEnvironment();
                if( pEnv )
@@ -340,6 +342,7 @@
                        jobject out = pEnv->FindClass(sClassName);
                        bRet = out != NULL;
                        pEnv->DeleteLocalRef( out );
+                       }
                }
 #endif
                return bRet;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to