summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 12:50:57 +0000
committerMichael Stahl <mstahl@redhat.com>2015-12-10 15:20:16 +0000
commit98001e6df082f17643d12afba5b6d862a9174771 (patch)
treec1ca307bf028f54e1cc78587a53250e3ba556652
parentb75e793621bbac52bf72e7b1032db542cce9dac8 (diff)
guard against missing Section
Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7 (cherry picked from commit c8b4fe55b8b50fc33a9157e93b42aed0f7d30534) Reviewed-on: https://gerrit.libreoffice.org/20521 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--lotuswordpro/source/filter/lwpfribsection.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx
index f66b00f9b509..b8704880bfda 100644
--- a/lotuswordpro/source/filter/lwpfribsection.cxx
+++ b/lotuswordpro/source/filter/lwpfribsection.cxx
@@ -167,7 +167,8 @@ void LwpFribSection::ParseSection()
else
{
LwpStory* pStory = static_cast<LwpStory*> ( m_pPara->GetStoryID().obj().get() );
- if (m_Section.obj()->GetTag() == VO_INDEXSECTION)
+ rtl::Reference<LwpObject> xObj(m_Section.obj());
+ if (xObj.is() && xObj->GetTag() == VO_INDEXSECTION)
{
//create a new section and add it to container
XFIndex* pIndex = new XFIndex;