summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 16:31:40 +0000
committerDavid Tardon <dtardon@redhat.com>2015-12-15 09:29:40 +0000
commitaf926e97b64eb9b03c04a9be1faf671a65b2c0c1 (patch)
treec4f271ee07d519d7b51a36977332264452b25fef
parentguard against infinite recursion on parsing objects (diff)
downloadcore-libreoffice-5-0-4.tar.gz
core-libreoffice-5-0-4.zip
guard against missing paragraph story libreoffice-5-0-4
Change-Id: I217c0aedca4eadc347c103899d96c70cf9606038 (cherry picked from commit dbc830aecc722d34971d773470da478ef4c38714) Reviewed-on: https://gerrit.libreoffice.org/20539 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit d4b850fe8bc45bfb018f0a8750e09a436c49d7df) Reviewed-on: https://gerrit.libreoffice.org/20696 Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r--lotuswordpro/source/filter/lwpfribsection.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx
index b8704880bfda..e24faf854c91 100644
--- a/lotuswordpro/source/filter/lwpfribsection.cxx
+++ b/lotuswordpro/source/filter/lwpfribsection.cxx
@@ -164,9 +164,8 @@ void LwpFribSection::ParseSection()
m_pMasterPage->ParseSection(this);
}
}
- else
+ else if (LwpStory* pStory = static_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()))
{
- LwpStory* pStory = static_cast<LwpStory*> ( m_pPara->GetStoryID().obj().get() );
rtl::Reference<LwpObject> xObj(m_Section.obj());
if (xObj.is() && xObj->GetTag() == VO_INDEXSECTION)
{