From 98001e6df082f17643d12afba5b6d862a9174771 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 9 Dec 2015 12:50:57 +0000 Subject: guard against missing Section Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7 (cherry picked from commit c8b4fe55b8b50fc33a9157e93b42aed0f7d30534) Reviewed-on: https://gerrit.libreoffice.org/20521 Reviewed-by: David Tardon Tested-by: David Tardon Reviewed-by: Miklos Vajna Reviewed-by: Michael Stahl --- lotuswordpro/source/filter/lwpfribsection.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ( m_pPara->GetStoryID().obj().get() ); - if (m_Section.obj()->GetTag() == VO_INDEXSECTION) + rtl::Reference xObj(m_Section.obj()); + if (xObj.is() && xObj->GetTag() == VO_INDEXSECTION) { //create a new section and add it to container XFIndex* pIndex = new XFIndex; -- cgit v1.2.3