diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-10 00:18:46 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-10 02:10:05 +0100 |
commit | 5a65ca67d9acefed399ed8706efa402c543bed87 (patch) | |
tree | 353873ceaf65db847efc22d9b1444ce66e793105 /embeddedobj | |
parent | af8c7599148cf8c2bed567a8fdf5393fc3c16409 (diff) |
fdo#60491: embeddedobj: catch exception in fallback path
This allows the OLE object to at least be passed to the OS for
opening...
Change-Id: I97f93eb3a015d7771f3fc909517ffb96d61fde52
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/oleembed.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index 81739c3d3e89..da15ae0ec558 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -709,7 +709,14 @@ namespace aArgs ), uno::UNO_QUERY_THROW ); uno::Reference< io::XStream > xCONTENTS; - xNameContainer->getByName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CONTENTS"))) >>= xCONTENTS; + try + { + xNameContainer->getByName("CONTENTS") >>= xCONTENTS; + } + catch (container::NoSuchElementException const&) + { + // ignore + } sal_Bool bCopied = xCONTENTS.is() && lcl_CopyStream(xCONTENTS->getInputStream(), xStream->getOutputStream()); |