diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-05-02 09:04:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-05-02 12:54:04 +0200 |
commit | 81e8cc7aa3d97ecc42f2592a2f6075f7f1ba74ff (patch) | |
tree | b2256a98c8428ef191a85bf3fda5a3205ce4ea36 /lotuswordpro | |
parent | d5565b70bc6d3d263e1cc50fa1f343f4e1a428fe (diff) |
ofz#58529 Null-dereference READ
Change-Id: I9d8ea7d40429faee94889e4d2d9df7440b18e65f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151255
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-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 b5583d19e6d4..d63a06fe9e38 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -192,6 +192,8 @@ void LwpRowLayout::ConvertRow(rtl::Reference<XFTable> const & pXFTable,sal_uInt8 if (!pTableLayout) throw std::runtime_error("missing TableLayout"); LwpTable* pTable = pTableLayout->GetTable(); + if (!pTable) + throw std::runtime_error("missing Table"); //calculate the connected cell position sal_Int32 nMarkConnCell = FindMarkConnCell(nStartCol,nEndCol); |