diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-01 11:21:10 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-10-19 13:57:44 +0200 |
commit | 0e308f421520b02f8680286f17ec518d4e89d1a6 (patch) | |
tree | 890f2adf83010611e000e0c113a14c434b6c25eb | |
parent | ofz#20366 OOM (diff) | |
download | core-0e308f421520b02f8680286f17ec518d4e89d1a6.tar.gz core-0e308f421520b02f8680286f17ec518d4e89d1a6.zip |
ofz#20447 Null-dereference READ
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)
Change-Id: I76c1c815ab5aaf4548c886a69989fcabe3de5248
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index 4348496be15e..a09daa9aa2e4 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -191,6 +191,8 @@ void LwpRowLayout::Read() void LwpRowLayout::ConvertRow(rtl::Reference<XFTable> const & pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol) { LwpTableLayout* pTableLayout = GetParentTableLayout(); + if (!pTableLayout) + throw std::runtime_error("missing TableLayout"); LwpTable* pTable = pTableLayout->GetTable(); //calculate the connected cell position |