summaryrefslogtreecommitdiffstats
path: root/sot/source/sdstor/storage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/storage.cxx')
-rw-r--r--sot/source/sdstor/storage.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 9d19bafafedb..ac723c28e251 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -762,7 +762,15 @@ SotClipboardFormatId SotStorage::GetFormatID( const css::uno::Reference < css::e
return SotClipboardFormatId::NONE;
OUString aMediaType;
- xProps->getPropertyValue("MediaType") >>= aMediaType;
+ try
+ {
+ xProps->getPropertyValue("MediaType") >>= aMediaType;
+ }
+ catch (uno::Exception const& e)
+ {
+ SAL_INFO("sot", "SotStorage::GetFormatID: exception: " << e);
+ }
+
if ( !aMediaType.isEmpty() )
{
css::datatransfer::DataFlavor aDataFlavor;