summaryrefslogtreecommitdiff
path: root/ucb/source/sorter
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2001-03-01 07:03:26 +0000
committerKai Sommerfeld <kso@openoffice.org>2001-03-01 07:03:26 +0000
commit55d8ead0b5bd58cedfa6f9774f6fce8d70abb890 (patch)
tree80e33d1d2937da4efbca169f7f2cd6fd6c2c1fa0 /ucb/source/sorter
parent553ec99586b67f44c508fa15698a4d6502357cd7 (diff)
Catch uno::Exception thrown by XMultiServiceFactory::createInstance(...).
Diffstat (limited to 'ucb/source/sorter')
-rw-r--r--ucb/source/sorter/sortdynres.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index e7727e1b53bf..5657fcb92260 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sortdynres.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: dv $ $Date: 2001-02-14 08:42:00 $
+ * last change: $Author: kso $ $Date: 2001-03-01 08:03:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -292,9 +292,19 @@ SortedDynamicResultSet::connectToCache(
Reference< XSourceInitialization > xTarget( xCache, UNO_QUERY );
if( xTarget.is() && mxSMgr.is() )
{
- Reference< XCachedDynamicResultSetStubFactory > xStubFactory(
- mxSMgr->createInstance( OUString::createFromAscii(
- "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ) ), UNO_QUERY );
+ Reference< XCachedDynamicResultSetStubFactory > xStubFactory;
+ try
+ {
+ xStubFactory = Reference< XCachedDynamicResultSetStubFactory >(
+ mxSMgr->createInstance(
+ OUString::createFromAscii(
+ "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ) ),
+ UNO_QUERY );
+ }
+ catch ( Exception const & )
+ {
+ }
+
if( xStubFactory.is() )
{
xStubFactory->connectToCache(