summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-21 10:57:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-21 13:59:34 +0100
commitd29fd56e21cc3f6ba5fba7af788e39f0a7bec00d (patch)
treee8cad83c2d2e28c8a7c98fd135b731f4c10041dc
parentde61e7302d05a8626aed39a2749a05fd4d376f48 (diff)
coverity#707130 Uncaught exception
Change-Id: I76bbe1adb60e7662b4da1effc57feb54ad8733bd
-rw-r--r--sd/source/ui/unoidl/sddetect.cxx12
1 files changed, 9 insertions, 3 deletions
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
{