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

New commits:
commit 0fe9ce208190d2329707a8684ed705c2e7d6f1d0
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Sep 7 16:47:25 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Sep 7 22:17:18 2022 +0200

    cid#1509283 silence Dereference after null check
    
    and
    
    cid#1509253 Dereference after null check
    
    which seem to exist since:
    
    commit 42ba2b6c03a74815d2041e554fea83350d554dd1
    Date:   Mon Sep 19 15:37:25 2011 +0200
    
        Text Boundaries: draw small inner corners for the columns areas
    
    Change-Id: Ibd292003349816107acf5044433c67ba6accc84b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139605
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index dd76c8609fda..5a37468f0d72 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -6935,6 +6935,8 @@ void SwPageFrame::PaintSubsidiaryLines( const SwPageFrame 
*,
         pLay = pLay->GetNext();
     }
 
+    assert(pPageBody && "presumably this is impossible");
+
     SwRect aArea( pPageBody->getFrameArea() );
     if ( pFootnoteCont )
         aArea.AddBottom( pFootnoteCont->getFrameArea().Bottom() - 
aArea.Bottom() );
@@ -6960,6 +6962,8 @@ void SwColumnFrame::PaintSubsidiaryLines( const 
SwPageFrame *,
         pLay = pLay->GetNext();
     }
 
+    assert(pColBody && "presumably this is impossible");
+
     SwRect aArea( pColBody->getFrameArea() );
 
     // #i3662# - enlarge top of column body frame's printing area

Reply via email to