From b0bd6e9e6ed90a14224e30e9e93a6ddff00dbc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 6 Feb 2014 09:50:28 +0000 Subject: [PATCH] coverity#1158271 Uncaught exception Change-Id: I1a39ed2fb8542cb1bc5a56ce8f78cafe4618aa79 --- .../source/impress/KeynoteImportFilter.cxx | 13 ++++++++++--- 1 file 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;