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

coverity#983985 Uncaught exception

Change-Id: I0082d75aa2c00daa35d8d72e44fbb6da161f9774
üst 0ac73115
......@@ -1892,6 +1892,8 @@ namespace cmis
uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo(
const uno::Reference< ucb::XCommandEnvironment >& xEnv)
throw( uno::RuntimeException )
{
try
{
if ( isFolder( xEnv ) )
{
......@@ -1918,10 +1920,19 @@ namespace cmis
return seq;
}
else
}
catch (const uno::RuntimeException&)
{
return uno::Sequence< ucb::ContentInfo >();
throw;
}
catch (const uno::Exception& e)
{
uno::Any a(cppu::getCaughtException());
throw lang::WrappedTargetRuntimeException(
"wrapped Exception " + e.Message,
uno::Reference<uno::XInterface>(), a);
}
return uno::Sequence< ucb::ContentInfo >();
}
list< uno::Reference< ucb::XContent > > Content::getChildren( )
......
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