sw/source/core/text/widorp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 153313dd195004fc735f92a0623cde4493e10358
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Mar 9 14:24:33 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Mar 9 16:27:46 2023 +0000

    cid#1521899 Dereference after null check
    
    Change-Id: I6cbdabfe794e37f7e00fa730f672bf8318b86b83
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148549
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/text/widorp.cxx b/sw/source/core/text/widorp.cxx
index 596307e61384..0ba37379d6ce 100644
--- a/sw/source/core/text/widorp.cxx
+++ b/sw/source/core/text/widorp.cxx
@@ -539,7 +539,7 @@ bool WidowsAndOrphans::FindWidows( SwTextFrame *pFrame, 
SwTextMargin &rLine )
                 pRow = pRow->GetUpper();
             }
 
-            if (pRow->HasFixSize())
+            if (pRow && pRow->HasFixSize())
             {
                 // This is a follow frame and our side is fixed.
                 const SwAttrSet& rSet = 
pFrame->GetTextNodeForParaProps()->GetSwAttrSet();

Reply via email to