diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-09 12:50:57 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:32 +0100 |
commit | 7e106354f7b14adfb8c4446d8b1683c2a97fc124 (patch) | |
tree | 0a5f859561775bcb3f12c970d6f9e4e91a7552c7 | |
parent | 738f904532ab56b2864d0719af62d11f2b3f76b8 (diff) |
guard against missing Section
Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7
(cherry picked from commit c8b4fe55b8b50fc33a9157e93b42aed0f7d30534)
Reviewed-on: https://gerrit.libreoffice.org/20520
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 74a030fb0a90da422f650772da49348ccd84b0b0)
-rw-r--r-- | lotuswordpro/source/filter/lwpfribsection.cxx | 3 |
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; |