summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-01 11:21:10 +0000
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-04-09 23:22:08 +0200
commit866548c27b397f747a6601d33ad1dd6c6392d47d (patch)
treefe9b95e97b98433dccb13a9f129f4067a2807fe8 /lotuswordpro/source/filter
parentofz#20366 OOM (diff)
downloadcore-866548c27b397f747a6601d33ad1dd6c6392d47d.tar.gz
core-866548c27b397f747a6601d33ad1dd6c6392d47d.zip
ofz#20447 Null-dereference READ
Change-Id: I76c1c815ab5aaf4548c886a69989fcabe3de5248 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87802 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit fec7e3422f4d1c5b9382518a11d0bb99b12e41c9)
Diffstat (limited to 'lotuswordpro/source/filter')
-rw-r--r--lotuswordpro/source/filter/lwprowlayout.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx
index 1db191350c3d..d05c3a346e4b 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -191,7 +191,8 @@ void LwpRowLayout::Read()
void LwpRowLayout::ConvertRow(rtl::Reference<XFTable> const & pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol)
{
LwpTableLayout* pTableLayout = GetParentTableLayout();
- assert(pTableLayout);
+ if (!pTableLayout)
+ throw std::runtime_error("missing TableLayout");
LwpTable* pTable = pTableLayout->GetTable();
//calculate the connected cell position