summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-11 21:50:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-11 21:50:48 +0100
commitdefc4faef618d4273ee5056359f4b8e5eed24a7c (patch)
tree6ac9a2176bd764dc99f7e1d1688788218474c618 /sc
parenteebc1e9a8a5c7fd04b795c62791a70eed65995e4 (diff)
getStatusIndicator can apparently return null
...at least in CppunitTests Change-Id: I75f05581db5423dc54ea7810a8cd2bd0f9c0c3f0
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xestream.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index af7aa7846fc3..795f86ba8a5c 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -1098,7 +1098,8 @@ bool XclExpXmlStream::exportDocument() throw()
uno::Reference<task::XStatusIndicator> xStatusIndicator = getStatusIndicator();
- xStatusIndicator->start(ScGlobal::GetRscString(STR_SAVE_DOC), 100);
+ if (xStatusIndicator.is())
+ xStatusIndicator->start(ScGlobal::GetRscString(STR_SAVE_DOC), 100);
// NOTE: Don't use SotStorage or SvStream any more, and never call
// SfxMedium::GetOutStream() anywhere in the xlsx export filter code!
@@ -1131,13 +1132,16 @@ bool XclExpXmlStream::exportDocument() throw()
// destruct at the end of the block
{
ExcDocument aDocRoot( aRoot );
- xStatusIndicator->setValue(10);
+ if (xStatusIndicator.is())
+ xStatusIndicator->setValue(10);
aDocRoot.ReadDoc();
- xStatusIndicator->setValue(40);
+ if (xStatusIndicator.is())
+ xStatusIndicator->setValue(40);
aDocRoot.WriteXml( *this );
}
- xStatusIndicator->end();
+ if (xStatusIndicator.is())
+ xStatusIndicator->end();
mpRoot = NULL;
return true;
}