sw/source/core/fields/ddetbl.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 9a81a5272196d6ba00551dd7ee0e4dab807e4052
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun Dec 1 19:17:49 2024 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Dec 2 09:38:49 2024 +0100

    crashtesting: crash on load of forum-en-40508.odt + F9 to update fields
    
    seems to already exist in oldest version I have
    
    Change-Id: I3f3652952476678c121cbe3f800b7adf7f7aa1a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177626
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/core/fields/ddetbl.cxx b/sw/source/core/fields/ddetbl.cxx
index 76b78bf93784..b990f2d846bc 100644
--- a/sw/source/core/fields/ddetbl.cxx
+++ b/sw/source/core/fields/ddetbl.cxx
@@ -155,7 +155,11 @@ void SwDDETable::ChangeContent()
             OSL_ENSURE( pBox->GetSttIdx(), "no content box" );
             SwNodeIndex aNdIdx( *pBox->GetSttNd(), 1 );
             SwTextNode* pTextNode = aNdIdx.GetNode().GetTextNode();
-            OSL_ENSURE( pTextNode, "No Node" );
+            if (!pTextNode)
+            {
+                SAL_WARN("sw.core", "No TextNode in 
SwDDETable::ChangeContent");
+                continue;
+            }
             SwContentIndex aCntIdx( pTextNode, 0 );
             pTextNode->EraseText( aCntIdx );
             pTextNode->InsertText( aLine.getToken( 0, '        ', 
nLineTokenPos ), aCntIdx );

Reply via email to