summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-13 11:46:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-13 15:24:03 +0100
commit6af638218496e6af93b3a0cf7f17768421e96903 (patch)
tree03466743bd540e8d37a18fdd9083693578425320 /lotuswordpro
parent6cb383da1be97f010552d08fbd631e14547aec41 (diff)
Null dereference
Change-Id: Ifda10738a4d4d97ba62ae3fc8804638621b24686 Reviewed-on: https://gerrit.libreoffice.org/49638 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 9da4852c1398..78d166574959 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -819,7 +819,8 @@ void LwpTableLayout::Read()
*/
void LwpTableLayout::XFConvert(XFContentContainer* pCont)
{
-
+ if (!m_pXFTable)
+ throw std::runtime_error("missing table");
pCont->Add(m_pXFTable.get());
}
/**
@@ -1141,8 +1142,7 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
}
else
{
- //Hidden cell would not be in cellsmap
- assert(false);
+ throw std::runtime_error("Hidden cell would not be in cellsmap");
}
}
pCellList = dynamic_cast<LwpCellList*>(pCellList->GetNextID().obj().get());
@@ -1152,7 +1152,7 @@ void LwpTableLayout::PutCellVals(LwpFoundry* pFoundry, LwpObjectID aTableID)
}
}catch (...) {
- assert(false);
+ SAL_WARN("lwp", "bad PutCellVals");
}
}