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>
This commit is contained in:
Caolán McNamara 2023-05-02 09:04:59 +01:00
parent d5565b70bc
commit 81e8cc7aa3

View File

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