diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-05 15:55:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-05 15:55:34 +0100 |
commit | 32ffdd367f5ef9e9af747bda9d46e90997a95e19 (patch) | |
tree | 847df291fc7cffe9e4a77b0d579cd80b16ff096d /desktop | |
parent | 962f01c3750be3b4309232789708cb7982ced591 (diff) |
coverity#706495 Uncaught exception
Change-Id: I36a48a72e9ce305c62d9a82c8d1fbfc2ad403068
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/manager/dp_informationprovider.cxx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx index be1e782f18ae..7ccb60924fcb 100644 --- a/desktop/source/deployment/manager/dp_informationprovider.cxx +++ b/desktop/source/deployment/manager/dp_informationprovider.cxx @@ -149,14 +149,21 @@ PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId ) } if ( !aLocationURL.isEmpty() ) { - ::ucbhelper::Content aContent( aLocationURL, NULL, mxContext ); - aLocationURL = aContent.getURL(); + try + { + ::ucbhelper::Content aContent( aLocationURL, NULL, mxContext ); + aLocationURL = aContent.getURL(); + } + catch (const css::ucb::ContentCreationException& e) + { + SAL_WARN( + "desktop.deployment", + "ignoring ContentCreationException \"" << e.Message << "\""); + } } return aLocationURL; } - - uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId ) throw ( uno::RuntimeException, std::exception ) @@ -221,7 +228,7 @@ PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId ) extensions = extMgr->getExtensionsWithSameIdentifier( dp_misc::getIdentifier(info.extension), info.extension->getName(), uno::Reference<css_ucb::XCommandEnvironment>()); - } catch (lang::IllegalArgumentException& e) { + } catch (const lang::IllegalArgumentException& e) { SAL_WARN( "desktop.deployment", "ignoring IllegalArgumentException \"" << e.Message << "\""); |