summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpfribtable.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpfribtable.cxx b/lotuswordpro/source/filter/lwpfribtable.cxx
index e76c25df6b2a..d14ea314b6f8 100644
--- a/lotuswordpro/source/filter/lwpfribtable.cxx
+++ b/lotuswordpro/source/filter/lwpfribtable.cxx
@@ -111,7 +111,7 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
pXFContentContainer = m_pPara->GetXFContainer();
//delete the additional blank para
XFParagraph* pCurrPara = m_pPara->GetFribs().GetXFPara();
- if(!pCurrPara->HasContents())
+ if (pXFContentContainer && !pCurrPara->HasContents())
{
if(pXFContentContainer->GetLastContent() == pCurrPara)
{
@@ -142,18 +142,20 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance();
LwpChangeMgr* pChangeMgr = pGlobal->GetLwpChangeMgr();
sChangeID = pChangeMgr->GetChangeID(this);
- if (!sChangeID.isEmpty())
+ if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
pXFContentContainer->Add(pChangeStart);
}
}
- pSuper->XFConvert(pXFContentContainer);
+
+ if (pXFContentContainer)
+ pSuper->XFConvert(pXFContentContainer);
if(m_bRevisionFlag)
{
- if (!sChangeID.isEmpty())
+ if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);