Kaydet (Commit) 32ffdd36 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706495 Uncaught exception

Change-Id: I36a48a72e9ce305c62d9a82c8d1fbfc2ad403068
üst 962f01c3
...@@ -149,14 +149,21 @@ PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId ) ...@@ -149,14 +149,21 @@ PackageInformationProvider::getPackageLocation( const OUString& _sExtensionId )
} }
if ( !aLocationURL.isEmpty() ) if ( !aLocationURL.isEmpty() )
{ {
::ucbhelper::Content aContent( aLocationURL, NULL, mxContext ); try
aLocationURL = aContent.getURL(); {
::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; return aLocationURL;
} }
uno::Sequence< uno::Sequence< OUString > > SAL_CALL uno::Sequence< uno::Sequence< OUString > > SAL_CALL
PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId ) PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
throw ( uno::RuntimeException, std::exception ) throw ( uno::RuntimeException, std::exception )
...@@ -221,7 +228,7 @@ PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId ) ...@@ -221,7 +228,7 @@ PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
extensions = extMgr->getExtensionsWithSameIdentifier( extensions = extMgr->getExtensionsWithSameIdentifier(
dp_misc::getIdentifier(info.extension), info.extension->getName(), dp_misc::getIdentifier(info.extension), info.extension->getName(),
uno::Reference<css_ucb::XCommandEnvironment>()); uno::Reference<css_ucb::XCommandEnvironment>());
} catch (lang::IllegalArgumentException& e) { } catch (const lang::IllegalArgumentException& e) {
SAL_WARN( SAL_WARN(
"desktop.deployment", "desktop.deployment",
"ignoring IllegalArgumentException \"" << e.Message << "\""); "ignoring IllegalArgumentException \"" << e.Message << "\"");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment