diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-05-17 08:15:34 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-05-17 08:15:34 +0000 |
commit | 9472185a918f24355f0fe4e00c0527914a309fc0 (patch) | |
tree | 6393cdcdd5a0799f321218e599ffa38be2d5bcd3 /connectivity/source/drivers/jdbc/JDriver.cxx | |
parent | 248a47cc35787ea3aa916b4fc6e4e21a6f324f96 (diff) |
#86528# size changes
Diffstat (limited to 'connectivity/source/drivers/jdbc/JDriver.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/JDriver.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx index 36bf22da34e5..bb348caa902f 100644 --- a/connectivity/source/drivers/jdbc/JDriver.cxx +++ b/connectivity/source/drivers/jdbc/JDriver.cxx @@ -2,9 +2,9 @@ * * $RCSfile: JDriver.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: oj $ $Date: 2001-05-17 07:26:57 $ + * last change: $Author: oj $ $Date: 2001-05-17 09:13:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,12 +154,14 @@ jclass java_sql_Driver::getMyClass() if( !theClass ) { SDBThreadAttach t; OSL_ENSURE(t.pEnv,"Java Enviroment gelscht worden!"); - if( !t.pEnv ) return (jclass)0; - jclass tempClass = t.pEnv->FindClass("java/sql/Driver"); - OSL_ENSURE(tempClass,"Java : FindClass nicht erfolgreich!"); - jclass globClass = (jclass)t.pEnv->NewGlobalRef( tempClass ); - t.pEnv->DeleteLocalRef( tempClass ); - saveClassRef( globClass ); + if( t.pEnv ) + { + jclass tempClass = t.pEnv->FindClass("java/sql/Driver"); + OSL_ENSURE(tempClass,"Java : FindClass nicht erfolgreich!"); + jclass globClass = (jclass)t.pEnv->NewGlobalRef( tempClass ); + t.pEnv->DeleteLocalRef( tempClass ); + saveClassRef( globClass ); + } } return theClass; } |