sw/source/core/text/xmldump.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5dbb0403b6f814129983963f5fea02208995270a Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Wed Dec 9 18:03:12 2020 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Dec 10 13:34:16 2020 +0100 sw: avoid crashing in SwFrame::dumpAsXmlAttributes() Change-Id: I86e160341e1d391ee6eaf80ab76610d95943b092 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107521 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 47d3e6536ab7..03729d6156b0 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -468,7 +468,7 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer ) const if (IsSctFrame()) { SwSectionFrame const*const pFrame(static_cast<SwSectionFrame const*>(this)); - SwSectionNode const*const pNode(pFrame->GetSection()->GetFormat()->GetSectionNode()); + SwSectionNode const*const pNode(pFrame->GetSection() ? pFrame->GetSection()->GetFormat()->GetSectionNode() : nullptr); xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("sectionNodeIndex"), TMP_FORMAT, pNode ? pNode->GetIndex() : -1); } if ( IsTextFrame( ) ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits