From 3f026077dcdee5118bc42114fd9343e4a8a4b477 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 5 Sep 2014 15:47:59 +0100 Subject: coverity#706498 Uncaught exception Change-Id: I99a5ccd930d231324b5a35fedd70320e02e358af --- desktop/source/deployment/registry/dp_registry.cxx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'desktop') 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 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 (;;) -- cgit