diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-04-16 16:21:26 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-04-19 14:40:50 +0200 |
commit | 832b23d9376019619929764606276aacde1e329a (patch) | |
tree | e3463cb4f54ae98320f32e4f3c02351e3f8963a4 /svx | |
parent | f1d9648b5196eacac080a2a4db42c06829554107 (diff) |
svx: fix crash in DefaultProperties::dumpAsXml()
mpItemSet can be null
Change-Id: I4192f84639116c550bba5303a5fc70528cb3e8c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114263
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/defaultproperties.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/sdr/properties/defaultproperties.cxx b/svx/source/sdr/properties/defaultproperties.cxx index 40675946848d..0e459d87f9ad 100644 --- a/svx/source/sdr/properties/defaultproperties.cxx +++ b/svx/source/sdr/properties/defaultproperties.cxx @@ -246,7 +246,10 @@ namespace sdr::properties { (void)xmlTextWriterStartElement(pWriter, BAD_CAST("DefaultProperties")); BaseProperties::dumpAsXml(pWriter); - mpItemSet->dumpAsXml(pWriter); + if (mpItemSet) + { + mpItemSet->dumpAsXml(pWriter); + } (void)xmlTextWriterEndElement(pWriter); } } // end of namespace |