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

guard against missing Section

Change-Id: Id5295d294b56d6504d962ee1941a350a595031e7
üst d2c89603
...@@ -164,7 +164,8 @@ void LwpFribSection::ParseSection() ...@@ -164,7 +164,8 @@ void LwpFribSection::ParseSection()
else else
{ {
LwpStory* pStory = static_cast<LwpStory*> ( m_pPara->GetStoryID().obj().get() ); 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 //create a new section and add it to container
XFIndex* pIndex = new XFIndex; 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