diff options
-rw-r--r-- | package/source/xstor/xstorage.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 29fdb60d0328..1858d76c3dcf 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -576,13 +576,19 @@ void OStorage_Impl::ReadRelInfoIfNecessary() { // Init from original stream uno::Reference< io::XInputStream > xRelInfoStream = GetRelInfoStreamForName( OUString() ); - if ( xRelInfoStream.is() ) - m_aRelInfo = ::comphelper::OFOPXMLHelper::ReadRelationsInfoSequence( + try + { + if ( xRelInfoStream.is() ) + m_aRelInfo = ::comphelper::OFOPXMLHelper::ReadRelationsInfoSequence( xRelInfoStream, "_rels/.rels", m_xContext ); - - m_nRelInfoStatus = RELINFO_READ; + m_nRelInfoStatus = RELINFO_READ; + } + catch (css::uno::Exception & e) + { + SAL_INFO("package.xstor", "caught Exception " << e.Message); + } } else if ( m_nRelInfoStatus == RELINFO_CHANGED_STREAM ) { |