Kaydet (Commit) 3f026077 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706498 Uncaught exception

Change-Id: I99a5ccd930d231324b5a35fedd70320e02e358af
üst 149c7ac2
...@@ -464,9 +464,20 @@ Reference<deployment::XPackage> PackageRegistryImpl::bindPackage( ...@@ -464,9 +464,20 @@ Reference<deployment::XPackage> PackageRegistryImpl::bindPackage(
if (mediaType.isEmpty()) if (mediaType.isEmpty())
{ {
::ucbhelper::Content ucbContent; ::ucbhelper::Content ucbContent;
if (create_ucb_content( bool bOk;
&ucbContent, url, xCmdEnv, false /* no throw */ )
&& !ucbContent.isFolder()) 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 ) ); OUString title( StrTitle::getTitle( ucbContent ) );
for (;;) for (;;)
......
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