[Libreoffice-commits] core.git: xmloff/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 24 11:09:32 UTC 2020


 xmloff/source/style/styleexp.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ae90b9127c5059a0d8cdbcde1536ebb56c3768b0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 24 10:16:22 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 24 13:08:55 2020 +0200

    crashtesting: sdr::table::TableDesignStyle doesn't support XPropertySet
    
    rStyle is a sdr::table::TableDesignStyle which doesn't support XPropertySet
    
    Change-Id: I4987cfd57abc1954e108271d85433ad6e8b1493f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101266
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index 31e10bc5f7e5..c3dc6b6742c7 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -130,6 +130,9 @@ bool XMLStyleExport::exportStyle(
         const OUString* pPrefix )
 {
     Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY );
+    if (!xPropSet)
+        return false;
+
     Reference< XPropertySetInfo > xPropSetInfo =
             xPropSet->getPropertySetInfo();
     Any aAny;


More information about the Libreoffice-commits mailing list