sw/source/filter/html/htmltab.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 21f60b057d8d11ee848beee00e4a8e1be293e20f
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Jul 30 10:13:24 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Jul 30 14:44:27 2025 +0200

    cid#1659925 silence Dereference null return value
    
    Change-Id: I2d253d85e628b7eac91690f4b57066f3a8197fa2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188585
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/filter/html/htmltab.cxx 
b/sw/source/filter/html/htmltab.cxx
index b01a8c0339bf..3e97c4f323bc 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -1502,8 +1502,8 @@ void HTMLTable::FixFrameFormat( SwTableBox *pBox,
                                           
pFrameFormat->GetDoc().GetNumberFormatter());
                 if (pOldBoxItem)
                 {
-                    // There was an old item, so it's guaranteed that there's 
a new item
                     const SvxBoxItem* pBoxItem2(rAttrSet.GetItem(RES_BOX));
+                    assert(pBoxItem2 && "There was an old item, so it's 
guaranteed that there's a new item");
                     if (*pBoxItem2 != *pOldBoxItem)
                     {
                         std::unique_ptr<SvxBoxItem> 
pNewBoxItem(pBoxItem2->Clone());

Reply via email to