[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 10 12:34:58 UTC 2020
sw/source/core/text/xmldump.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5dbb0403b6f814129983963f5fea02208995270a
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Wed Dec 9 18:03:12 2020 +0100
Commit: Michael Stahl <michael.stahl at 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.stahl at 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( ) )
More information about the Libreoffice-commits
mailing list