summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-12 15:25:20 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-12 15:26:31 -0400
commitfb1d9cc99e026ba9cf15ab49b2251cecfbbf6d10 (patch)
treed59d4385fce6d82bcf44a535124d3d118331abbd /sc/source
parentcc4568e57649367d3d611ce0732d86ee8b829d3c (diff)
Check for null object. The OLE name may not always be set.
Change-Id: Ib3e55af8870b41a5b76179d2215fc5125ceda5af
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/excel/xiescher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 54f033793d8d..d76b379050a1 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -3200,7 +3200,7 @@ String XclImpObjectManager::GetOleNameOverride( SCTAB nTab, sal_uInt16 nObjId )
rtl::OUString sOleName;
String sCodeName = GetExtDocOptions().GetCodeName( nTab );
- if ( mxOleCtrlNameOverride->hasByName( sCodeName ) )
+ if (mxOleCtrlNameOverride.is() && mxOleCtrlNameOverride->hasByName(sCodeName))
{
Reference< XIndexContainer > xIdToOleName;
mxOleCtrlNameOverride->getByName( sCodeName ) >>= xIdToOleName;