summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-04-16 16:21:26 +0200
committerAndras Timar <andras.timar@collabora.com>2021-04-21 21:08:16 +0200
commit2d61d0639d7b97046ed4f4ef98cc34281e63fcf4 (patch)
treedb72dace66f9454ad702b9868988ce6a51af8ede /svx
parent128ee71195b4376daf5c191dd74b7d5479dc689f (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>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/properties/defaultproperties.cxx5
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