sw/qa/writerfilter/ooxml/ooxml.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 18d82f37ee81ffe74431118a42b33874a8507d5a Author: Mike Kaganski <[email protected]> AuthorDate: Sat Nov 1 02:05:29 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Nov 1 08:02:09 2025 +0100 enable-msvc-analyze: C6011: Dereferencing NULL pointer C:\lo Dereferencing NULL pointer 'pRow1Frame'. : Lines: 155, 158, 159, 160, 161, 162, 163, 164 Change-Id: I1744403dfa2d99c8cc2caed71e961aa7498c3da7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193286 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/qa/writerfilter/ooxml/ooxml.cxx b/sw/qa/writerfilter/ooxml/ooxml.cxx index 7ef1d48cbab1..4a6940620c91 100644 --- a/sw/qa/writerfilter/ooxml/ooxml.cxx +++ b/sw/qa/writerfilter/ooxml/ooxml.cxx @@ -161,6 +161,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTableWafterRowHeight) auto pBeforeTableFrame = pPage->FindFirstBodyContent()->DynCastTextFrame(); auto pTabFrame = pBeforeTableFrame->GetNext()->DynCastTabFrame(); const SwFrame* pRow1Frame = pTabFrame->Lower(); + assert(pRow1Frame); const SwFrame* pRow2Frame = pRow1Frame->GetNext(); SwTwips nRow2Height = pRow2Frame->getFrameArea().Height(); // Without the accompanying fix in place, this test would have failed with:
