sw/source/core/layout/objectformattertxtfrm.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit bc8035a0606f9939f81f8468538f9dcc8671a85e Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Oct 27 19:38:37 2024 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 29 10:48:06 2024 +0100 crashtesting: crash on loading ooo71160-2.doc since: commit 2d6addb180ad30383f4aaec198c22ccbf936fa87 CommitDate: Mon Oct 21 15:16:57 2024 +0200 tdf#163486 sw: PVS: identical sub-expressions Change-Id: I601a72a8a39f3591d1110f65a027e89923befaca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175702 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> (cherry picked from commit 268a82d43425534761ef243d9204bfe4f4d3abc6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175750 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 1fdad26a10ec..27793ce7855d 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -575,6 +575,8 @@ SwAnchoredObject* SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor( static SwRowFrame const* FindTopLevelRowFrame(SwFrame const*const pFrame) { SwRowFrame * pRow = const_cast<SwFrame*>(pFrame)->FindRowFrame(); + if (!pRow) + return nullptr; // looks like SwTabFrame has mbInfTab = true so go up 2 levels while (pRow->GetUpper()->GetUpper()->IsInTab()) {