svx/source/sdr/properties/defaultproperties.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 832b23d9376019619929764606276aacde1e329a
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Fri Apr 16 16:21:26 2021 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Apr 19 14:40:50 2021 +0200

    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.st...@allotropia.de>

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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to