summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-05 15:47:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-05 15:47:59 +0100
commit3f026077dcdee5118bc42114fd9343e4a8a4b477 (patch)
tree89ba630459068e8a908d0eceac726b44f95fe6b5 /desktop
parent149c7ac26a97c96574fbbd86225d1486cef13417 (diff)
coverity#706498 Uncaught exception
Change-Id: I99a5ccd930d231324b5a35fedd70320e02e358af
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_registry.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/desktop/source/deployment/registry/dp_registry.cxx b/desktop/source/deployment/registry/dp_registry.cxx
index dc1a689f20ca..5131afb5dcd8 100644
--- a/desktop/source/deployment/registry/dp_registry.cxx
+++ b/desktop/source/deployment/registry/dp_registry.cxx
@@ -464,9 +464,20 @@ Reference<deployment::XPackage> PackageRegistryImpl::bindPackage(
if (mediaType.isEmpty())
{
::ucbhelper::Content ucbContent;
- if (create_ucb_content(
- &ucbContent, url, xCmdEnv, false /* no throw */ )
- && !ucbContent.isFolder())
+ bool bOk;
+
+ try
+ {
+ bOk = create_ucb_content(
+ &ucbContent, url, xCmdEnv, false /* no throw */ )
+ && !ucbContent.isFolder();
+ }
+ catch (const css::ucb::ContentCreationException&)
+ {
+ bOk = false;
+ }
+
+ if (bOk)
{
OUString title( StrTitle::getTitle( ucbContent ) );
for (;;)