From 81e8cc7aa3d97ecc42f2592a2f6075f7f1ba74ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 2 May 2023 09:04:59 +0100 Subject: [PATCH] ofz#58529 Null-dereference READ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9d8ea7d40429faee94889e4d2d9df7440b18e65f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151255 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- lotuswordpro/source/filter/lwprowlayout.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 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);