From d29fd56e21cc3f6ba5fba7af788e39f0a7bec00d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 21 Jul 2014 10:57:42 +0100 Subject: coverity#707130 Uncaught exception Change-Id: I76bbe1adb60e7662b4da1effc57feb54ad8733bd --- sd/source/ui/unoidl/sddetect.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index 81577fc8753b..81b7da2241c9 100644 --- a/sd/source/ui/unoidl/sddetect.cxx +++ b/sd/source/ui/unoidl/sddetect.cxx @@ -75,9 +75,15 @@ OUString SAL_CALL SdFilterDetect::detect( Sequence< beans::PropertyValue >& lDes if ( pInStrm->remainingSize() == 0 ) return OUString(); - SotStorageRef aStorage = new SotStorage( pInStrm, false ); - if ( !aStorage->GetError() && aStorage->IsStream( "PowerPoint Document" ) ) - return aTypeName; + try + { + SotStorageRef aStorage = new SotStorage( pInStrm, false ); + if ( !aStorage->GetError() && aStorage->IsStream( "PowerPoint Document" ) ) + return aTypeName; + } + catch (const css::ucb::ContentCreationException&) + { + } } else { -- cgit