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

New commits:
commit da2cd00e3a44cd5d4c14d2d549b64c70fba4edfa
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Sep 15 12:58:59 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Sep 15 14:09:47 2025 +0200

    Revert "Revert "Silence warning C6011: Dereferencing NULL pointer in sw""
    
    So at least https://ci.libreoffice.org/job/lo_tb_master_win_analyze/
    is happy
    
    This reverts commit 420e8a140a92b3ecaf2a71ca6d53445a5b8bc7dc.
    
    Change-Id: Iffb8c392a00626e729a0b27558773ae13ad8d92f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190962
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/sw/source/core/layout/trvlfrm.cxx 
b/sw/source/core/layout/trvlfrm.cxx
index 399a6ac9249a..fed5b30a9e99 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -1880,6 +1880,8 @@ static const SwFrame* lcl_FindStartOfVirtualPages(const 
SwPageFrame *pPage)
             // it (and every upper table frame) must have valid upper.
             while (const SwFrame* pTable = pFlow->GetUpper()->FindTabFrame())
                 pFlow = pTable;
+            // FIXME: 
https://developercommunity.visualstudio.com/t/Wrong-warning-C6011:-Dereferencing-NULL/10966032
+            assert(pFlow);
             const SwFormatPageDesc& rFormatPageDesc = pFlow->GetPageDescItem();
 
             if ( rFormatPageDesc.GetNumOffset() && 
rFormatPageDesc.GetDefinedIn() )

Reply via email to