Kaydet (Commit) 423921b0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

fdo#78949 Handle (SAXParse-)Exception that can't pass getAllRelationships

...like it was already done in the similar else branch of
ReadRelInfoIfNecessary.  The call site at GetAllRelationshipsIfAny will
translate an m_nRelInfoStatus that remained RELINFO_NOT_INIT into an
IOException.

Change-Id: I79c601acd23b3b0020c7b4de4c20b0282524bce1
üst 8d54796b
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment