lotuswordpro/source/filter/lwprowlayout.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 81e8cc7aa3d97ecc42f2592a2f6075f7f1ba74ff
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue May 2 09:04:59 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue May 2 12:54:04 2023 +0200

    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 <caol...@redhat.com>

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);

Reply via email to