sw/source/core/docnode/ndtbl.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c6661190de4f85c2ea6a96ea76efe85119271dd2
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Feb 8 15:05:51 2026 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Feb 8 14:20:59 2026 +0100

    enable-msvc-analyze: C6011: Dereferencing NULL pointer
    
    C:\lo    Dereferencing NULL pointer 'pAutoFormat'. .: Lines: 4196, 4197, 
4200,
    4201, 4202, 4201, 4202, 4201, 4205, 4207, 4208, 4209, 4208, 4219, 4205,
    4207, 4208
    
    Change-Id: I09e5c714e8762602118332368c13f43b64a64360
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198901
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 9d45868969ce..ed164d208cb5 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -4205,6 +4205,7 @@ void SwDoc::ResetTableStyles(const OUString& sTableStyle, 
std::u16string_view sO
     for (size_t i = 0; i < pAutoFormats.size(); i++)
     {
         SwTableAutoFormat* pAutoFormat = pAutoFormats.GetData(i);
+        assert(pAutoFormat);
         OUString sCurrentStyle = pAutoFormat->GetName().toString();
         while (pAutoFormat)
         {

Reply via email to