diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-07 14:09:57 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-10-11 18:11:18 +0200 |
commit | 781cf1c02a21db2aa8b7fc711fb7561e315b5f67 (patch) | |
tree | 96045d33bb6c5dd69263c2168b42b954a3ded780 | |
parent | d3f00a12a471c489eed46b1866b170c7dba6c8a0 (diff) |
ofz#20517 null-dereference
Change-Id: I443869f848925911ed46e2f547f0dc652b1ff290
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88214
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 08695569fd4fccc1722e7e3c7e0a234699199196)
-rw-r--r-- | lotuswordpro/qa/cppunit/data/pass/ofz20517-1.lwp | bin | 0 -> 21429 bytes | |||
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/qa/cppunit/data/pass/ofz20517-1.lwp b/lotuswordpro/qa/cppunit/data/pass/ofz20517-1.lwp Binary files differnew file mode 100644 index 000000000000..de6dcbf1c5d5 --- /dev/null +++ b/lotuswordpro/qa/cppunit/data/pass/ofz20517-1.lwp diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index a09daa9aa2e4..da10c32888f7 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -379,11 +379,13 @@ void LwpRowLayout::ConvertCommonRow(rtl::Reference<XFTable> const & pXFTable, sa LwpTableLayout* pTableLayout = GetParentTableLayout(); if (!pTableLayout) return; + LwpTable* pTable = pTableLayout->GetTable(); + if (!pTable) + return; rtl::Reference<XFRow> xRow(new XFRow); xRow->SetStyleName(m_StyleName); - LwpTable* pTable = pTableLayout->GetTable(); sal_uInt8 nCellStartCol,nCellEndCol; for (sal_uInt8 i = nStartCol; i < nEndCol ; i++) |