sw/source/core/layout/objectformattertxtfrm.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 268a82d43425534761ef243d9204bfe4f4d3abc6 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sun Oct 27 19:38:37 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Oct 28 21:20:29 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> diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 2c0ea38aae43..0d55a90ac8b4 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()) {