diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-03-26 08:06:37 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-03-26 08:06:37 +0000 |
commit | 33f39d47e3330eeafacd905e9f0e3fdde910286f (patch) | |
tree | 791f7d0ea737dac67cda661a6d0f553bea107dde /linguistic | |
parent | 6c9f21fbd251cd13a56cf7274593d1d2548dec16 (diff) |
INTEGRATION: CWS tl51_DEV300 (1.12.52); FILE MERGED
2007/11/15 12:53:37 tl 1.12.52.1: #150990# catch exception from createInstance(WithArguments) calls
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/thesdsp.cxx | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx index 91f65fc147c9..6828f0110961 100644 --- a/linguistic/source/thesdsp.cxx +++ b/linguistic/source/thesdsp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: thesdsp.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: obo $ $Date: 2006-09-17 03:56:17 $ + * last change: $Author: obo $ $Date: 2008-03-26 09:06:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -228,10 +228,17 @@ Sequence< Reference< XMeaning > > SAL_CALL while (i < nLen && aMeanings.getLength() == 0) { // create specific service via it's implementation name - Reference< XThesaurus > xThes( - xMgr->createInstanceWithArguments( - pImplNames[i], aArgs ), - UNO_QUERY ); + Reference< XThesaurus > xThes; + try + { + xThes = Reference< XThesaurus >( + xMgr->createInstanceWithArguments( + pImplNames[i], aArgs ), UNO_QUERY ); + } + catch (uno::Exception &) + { + DBG_ERROR( "createInstanceWithArguments failed" ); + } pRef[i] = xThes; if (xThes.is() && xThes->hasLocale( rLocale )) |