[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 12 12:26:39 PDT 2012
sc/source/filter/excel/xiescher.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fb1d9cc99e026ba9cf15ab49b2251cecfbbf6d10
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Fri Oct 12 15:25:20 2012 -0400
Check for null object. The OLE name may not always be set.
Change-Id: Ib3e55af8870b41a5b76179d2215fc5125ceda5af
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 54f0337..d76b379 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;
More information about the Libreoffice-commits
mailing list