summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-01 19:17:49 +0000
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2024-12-11 12:09:05 +0100
commit4788e8dafad50748425527bcf90a8c3778266410 (patch)
tree00e7853e495cdabd1f0dddf8e90d6d79ef276278
parent37c6332432ce16192eaf292a4c6eb99806afae45 (diff)
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/+/177628 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit b9c91699697e405b591aef1addd7a4b8da5a2a04) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177662 Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sw/source/core/fields/ddetbl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/fields/ddetbl.cxx b/sw/source/core/fields/ddetbl.cxx
index 7a93abe3108e..79b9c5b037fc 100644
--- a/sw/source/core/fields/ddetbl.cxx
+++ b/sw/source/core/fields/ddetbl.cxx
@@ -151,7 +151,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, '\t', nLineTokenPos ), aCntIdx );