diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-09 12:50:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-09 12:52:48 +0000 |
commit | 5c3d44a5bc32840164d2f2acd7a6d60491c727b8 (patch) | |
tree | 1d0564005def567e6753151a6c5d98004459c756 /lotuswordpro/source | |
parent | c5797fa2048c69caa3dd26861d2aa903e1a0bae4 (diff) |
guard against missing Section
Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7
(cherry picked from commit c8b4fe55b8b50fc33a9157e93b42aed0f7d30534)
Reviewed-on: https://gerrit.libreoffice.org/20519
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-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 0f63d0f6a605..bafaefc0ba15 100644 --- a/lotuswordpro/source/filter/lwpfribsection.cxx +++ b/lotuswordpro/source/filter/lwpfribsection.cxx @@ -164,7 +164,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; |