diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-03-01 07:03:26 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-03-01 07:03:26 +0000 |
commit | 55d8ead0b5bd58cedfa6f9774f6fce8d70abb890 (patch) | |
tree | 80e33d1d2937da4efbca169f7f2cd6fd6c2c1fa0 /ucb/source/sorter | |
parent | 553ec99586b67f44c508fa15698a4d6502357cd7 (diff) |
Catch uno::Exception thrown by XMultiServiceFactory::createInstance(...).
Diffstat (limited to 'ucb/source/sorter')
-rw-r--r-- | ucb/source/sorter/sortdynres.cxx | 20 |
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( |