diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-01 21:15:00 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-08 11:56:05 +0100 |
commit | 1abf1483bca8ad4d8097c471a7f80981f0307246 (patch) | |
tree | 98b378bfb4ef4e1457ac392e81ef30f09f3cb2df /xmloff | |
parent | 4ed5ebad3a20dbed24f1704cb9d7ed5147ee781f (diff) |
Resolves: tdf#104812 crash on exporting odp
was crashtesting: a gadzillion failures on export to odp
e.g. fdo35235-1.odp
(cherry picked from commit f1c08d6503442ec257aa8535dfbe3743c743e4a0)
(cherry picked from commit 09b856289c44c0fe792082b681d48cf5ee70d808)
Change-Id: I259cdc9ed073be2ad7d5208cd943d4f193f09c16
Reviewed-on: https://gerrit.libreoffice.org/32275
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 8acf0a2157082a05fe912e849d3607d30eea2516)
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index d52a5ed0fea2..93fc5feea70f 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -1659,6 +1659,9 @@ void XMLTextParagraphExport::exportText( GetExport().GetShapeExport(); // make sure the graphics styles family // is added Reference < XEnumerationAccess > xEA( rText, UNO_QUERY ); + if( ! xEA.is() ) + return; + Reference < XEnumeration > xParaEnum(xEA->createEnumeration()); Reference < XPropertySet > xPropertySet( rText, UNO_QUERY ); Reference < XTextSection > xBaseSection; |