Kaydet (Commit) 5c3d44a5 authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against missing Section

Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7
(cherry picked from commit c8b4fe55)
Reviewed-on: https://gerrit.libreoffice.org/20519Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c5797fa2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment