summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-10 11:04:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-10 11:05:56 +0200
commit6d8b9aab3cea5b88b3cb56d9343500d45be8b124 (patch)
tree24bf992236d7e23db12084180e36211940d186b8 /oox
parent1806882317af1162edce5c2389c9c5eeb18455ac (diff)
Attempt at making CppunitTest_sc_macros_test work again
...after b15b372c7cc64315e14c7600429f0995ed2b2666 "structure for vba export" broke it; moggi, please revisit Change-Id: I9cf1614b05ebad64898d0e62cfeb4cd2e24dc9e0
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/vbaexport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx
index d6e2b4f68440..10c0d21c06bc 100644
--- a/oox/source/ole/vbaexport.cxx
+++ b/oox/source/ole/vbaexport.cxx
@@ -769,6 +769,9 @@ void exportPROJECTwmStream(SvStream& rStrm, const css::uno::Sequence<OUString>&
void VbaExport::exportVBA(SotStorage* pRootStorage)
{
css::uno::Reference<css::container::XNameContainer> xNameContainer = getBasicLibrary();
+ if (!xNameContainer.is()) {
+ return;
+ }
css::uno::Sequence<OUString> aElementNames = xNameContainer->getElementNames();
sal_Int32 n = aElementNames.getLength(); // get the number of modules