diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-04-16 16:21:26 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-21 20:53:37 +0200 |
commit | ecfa3da07e5b68a4bc24f25d3760e72efc42fe92 (patch) | |
tree | efef10d1aee0015dbc693f98a621ead8363fc2bb | |
parent | 966061fa7c02c9dd8d089db2d56ee95667009d26 (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>
(cherry picked from commit 832b23d9376019619929764606276aacde1e329a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114268
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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 e9a9934a9973..9244356af297 100644 --- a/svx/source/sdr/properties/defaultproperties.cxx +++ b/svx/source/sdr/properties/defaultproperties.cxx @@ -246,7 +246,10 @@ namespace sdr::properties { xmlTextWriterStartElement(pWriter, BAD_CAST("DefaultProperties")); BaseProperties::dumpAsXml(pWriter); - mpItemSet->dumpAsXml(pWriter); + if (mpItemSet) + { + mpItemSet->dumpAsXml(pWriter); + } xmlTextWriterEndElement(pWriter); } } // end of namespace |