diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 09:50:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 11:57:45 +0000 |
commit | b0bd6e9e6ed90a14224e30e9e93a6ddff00dbc5d (patch) | |
tree | ceac5d38ac95d25f674c844636a22e9b6c5f5920 /writerperfect | |
parent | 2dfb8341eaf1adb3c27058ec05fef8bd52551aaa (diff) |
coverity#1158271 Uncaught exception
Change-Id: I1a39ed2fb8542cb1bc5a56ce8f78cafe4618aa79
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/impress/KeynoteImportFilter.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index 4efbcb0e7ece..ea944e05d70b 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -234,10 +234,17 @@ throw( com::sun::star::uno::RuntimeException ) if ( xContent.is() ) { ucbhelper::Content aContent( xContent, Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() ); - if ( aContent.isFolder() ) + try { - input.reset( new writerperfect::DirectoryStream( xContent ) ); - bIsPackage = true; + if ( aContent.isFolder() ) + { + input.reset( new writerperfect::DirectoryStream( xContent ) ); + bIsPackage = true; + } + } + catch (...) + { + return OUString(); } libetonyek::KEYDocumentType type = libetonyek::KEY_DOCUMENT_TYPE_UNKNOWN; |