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

New commits:
commit d32d9234466c296b8df5542ba10a5d92d75372b6
Author:     Xisco Fauli <[email protected]>
AuthorDate: Thu Jan 22 16:45:09 2026 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Jan 23 08:51:33 2026 +0100

    sw: fix warning C6011: Dereferencing NULL pointer 'pShell'
    
    
E:/jenkins/workspace/lo_tb_master_win_analyze/sw/source/core/layout/paintfrm.cxx(4506):
 error C2220: the following warning is treated as an error
    E:\jenkins\workspace\lo_tb_master_win_analyze\sw\source    
    After
    commit 58d677055d9f6da976bf4fe34c1d89dd6871050d
    Author: Miklos Vajna <[email protected]>
    Date:   Mon Jan 19 13:34:32 2026 +0100
    
        cool#13988 sw redline render mode: handle anchored images
    
    Change-Id: I68cc27e1d2b9ef1fd9851f6079c7b52a488070a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197853
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index a8faf95c3e5c..1ebc9203e0e4 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4486,7 +4486,7 @@ void SwFlyFrame::PaintSwFrame(vcl::RenderContext& 
rRenderContext, SwRect const&
     PaintDecorators();
 
     // crossing out for tracked deletion
-    const SwViewOption* pViewOptions = pShell->GetViewOptions();
+    const SwViewOption* pViewOptions = pShell ? pShell->GetViewOptions() : 
nullptr;
     SwRedlineRenderMode eRedlineRenderMode
         = pViewOptions ? pViewOptions->GetRedlineRenderMode() : 
SwRedlineRenderMode::Standard;
     if (GetAuthor() != std::string::npos && IsDeleted()

Reply via email to