sw/source/core/layout/objectformattertxtfrm.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a6d49c49bb25b85880099544488481ee74a1addc
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Oct 27 19:38:37 2024 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Nov 4 14:39:32 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/+/175751
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Tested-by: Michael Stahl <michael.st...@allotropia.de>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    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())
     {

Reply via email to