diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2010-02-05 09:34:40 +0100 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2010-02-05 09:34:40 +0100 |
commit | d013eba7152aad180065f1cf74269e8144fa19ab (patch) | |
tree | 750e8158290191fe860648fd2b4e4474d75310b3 | |
parent | 105253a8997418804b03511db227b2ead8b6c1ee (diff) |
#i108923# - added exception handling.
-rw-r--r-- | ucb/source/ucp/gio/gio_datasupplier.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ucb/source/ucp/gio/gio_datasupplier.cxx b/ucb/source/ucp/gio/gio_datasupplier.cxx index be0c57d4d7c0..cffec8098a83 100644 --- a/ucb/source/ucp/gio/gio_datasupplier.cxx +++ b/ucb/source/ucp/gio/gio_datasupplier.cxx @@ -242,10 +242,10 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues( sal_uInt32 nInde uno::Reference< ucb::XContent > xContent( queryContent( nIndex ) ); if ( xContent.is() ) { - uno::Reference< ucb::XCommandProcessor > xCmdProc( xContent, - uno::UNO_QUERY ); - if ( xCmdProc.is() ) + try { + uno::Reference< ucb::XCommandProcessor > xCmdProc( + xContent, uno::UNO_QUERY_THROW ); sal_Int32 nCmdId( xCmdProc->createCommandIdentifier() ); ucb::Command aCmd; aCmd.Name = rtl::OUString::createFromAscii( "getPropertyValues" ); @@ -260,6 +260,9 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues( sal_uInt32 nInde return xRow; } } + catch ( uno::Exception const & ) + { + } } } return uno::Reference< sdbc::XRow >(); |