coverity#1158271 Uncaught exception

Change-Id: I1a39ed2fb8542cb1bc5a56ce8f78cafe4618aa79
This commit is contained in:
Caolán McNamara
2014-02-06 09:50:28 +00:00
parent 2dfb8341ea
commit b0bd6e9e6e

View File

@@ -234,11 +234,18 @@ throw( com::sun::star::uno::RuntimeException )
if ( xContent.is() )
{
ucbhelper::Content aContent( xContent, Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() );
try
{
if ( aContent.isFolder() )
{
input.reset( new writerperfect::DirectoryStream( xContent ) );
bIsPackage = true;
}
}
catch (...)
{
return OUString();
}
libetonyek::KEYDocumentType type = libetonyek::KEY_DOCUMENT_TYPE_UNKNOWN;
if ( !libetonyek::KEYDocument::isSupported( input.get(), &type ) )