diff options
Diffstat (limited to 'connectivity/source/drivers/jdbc/tools.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/tools.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/connectivity/source/drivers/jdbc/tools.cxx b/connectivity/source/drivers/jdbc/tools.cxx index 57bf3eeacc66..22b6963e3141 100644 --- a/connectivity/source/drivers/jdbc/tools.cxx +++ b/connectivity/source/drivers/jdbc/tools.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tools.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: oj $ $Date: 2001-05-31 08:29:15 $ + * last change: $Author: oj $ $Date: 2001-08-14 07:21:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -161,9 +161,13 @@ java_util_Properties::java_util_Properties( ): java_lang_Object( NULL, (jobject) // -------------------------------------------------------------------------------- jstring connectivity::convertwchar_tToJavaString(JNIEnv *pEnv,const ::rtl::OUString& _rTemp) { + jstring pStr = NULL; if (pEnv) - return pEnv->NewString(_rTemp.getStr(), _rTemp.getLength()); - return NULL; + { + pStr = pEnv->NewString(_rTemp.getStr(), _rTemp.getLength()); + OSL_ENSURE(pStr,"Could not create a jsstring object!"); + } + return pStr; } // -------------------------------------------------------------------------------- |