summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/Object.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-12-12 12:34:23 +0000
committerOcke Janssen <oj@openoffice.org>2000-12-12 12:34:23 +0000
commitd0fae7529fb4cf8bf043c97abfb9553ebfd59ac1 (patch)
tree2a8ec5793dec3f4dea94a75c0e89d178f000010a /connectivity/source/drivers/jdbc/Object.cxx
parent1a66d514ad7df64b478582c2350befdbf820e21b (diff)
#81833# set factory for the first instance
Diffstat (limited to 'connectivity/source/drivers/jdbc/Object.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/Object.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx
index 56574801fa..566290150c 100644
--- a/connectivity/source/drivers/jdbc/Object.cxx
+++ b/connectivity/source/drivers/jdbc/Object.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Object.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: oj $ $Date: 2000-12-06 13:43:08 $
+ * last change: $Author: oj $ $Date: 2000-12-12 13:33:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -121,6 +121,10 @@ JavaVM_ * pJRE_javaVM = NULL;
int SDB_JRE_InitJava(const Reference<XMultiServiceFactory >& _rxFactory)
{
+ OSL_ENSURE(_rxFactory.is(),"No XMultiServiceFactory a.v.!");
+ if(!_rxFactory.is())
+ return 0;
+
int result = 0;
JNIEnv * pEnv = NULL;