summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-09 09:51:09 +0000
committerTor Lillqvist <tml@collabora.com>2014-12-15 13:55:11 +0200
commitff19297223451ce990e8e8442ba3d5087323bbd6 (patch)
tree9bcb403f2c09faf4c737ced65d428b4d4a50ed4b
parentsurely it makes no sense to ignore return of Sanitize[Col|Row] (diff)
downloadcore-ff19297223451ce990e8e8442ba3d5087323bbd6.tar.gz
core-ff19297223451ce990e8e8442ba3d5087323bbd6.zip
Resolves: fdo#87108 crash on saving fodg
Change-Id: Ib88f0e9b0a3ba229c9e9f6cf20831c16051e3e29 (cherry picked from commit bfd63516c9fd4ec366576f9a0e3c456bc3d530a3) (cherry picked from commit 2b257feba285840dee91e3c3e7ddc112eb8f684e) Reviewed-on: https://gerrit.libreoffice.org/13390 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 4eacdcf585ea..f230b2afa149 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -2548,10 +2548,13 @@ void SdXMLExport::GetConfigurationSettings(uno::Sequence<beans::PropertyValue>&
Reference< beans::XPropertySet > xProps( xFac->createInstance("com.sun.star.document.Settings"), UNO_QUERY );
if( xProps.is() )
SvXMLUnitConverter::convertPropertySet( rProps, xProps );
- DocumentSettingsSerializer *pFilter;
- pFilter = dynamic_cast<DocumentSettingsSerializer *>(xProps.get());
- if( pFilter )
- rProps = pFilter->filterStreamsToStorage( GetTargetStorage(), rProps );
+ DocumentSettingsSerializer *pFilter(dynamic_cast<DocumentSettingsSerializer *>(xProps.get()));
+ if (!pFilter)
+ return;
+ const uno::Reference< embed::XStorage > xStorage(GetTargetStorage());
+ if (!xStorage.is())
+ return;
+ rProps = pFilter->filterStreamsToStorage(xStorage, rProps);
}
}