--- ooh680-m12/cppuhelper/source/implbase_ex.cxx.alt 2006-09-16 16:40:52 +0400 +++ ooh680-m12/cppuhelper/source/implbase_ex.cxx 2008-04-27 14:27:09 +0400 @@ -127,6 +127,12 @@ static inline type_entry * __getTypeEntr for ( sal_Int32 n = cd->m_nTypes; n--; ) { type_entry * pEntry = &pEntries[ n ]; + if (!pEntry->m_type.getCppuType) + { + throw RuntimeException( rtl::OUString::createFromAscii( + "type \"\" is no interface type!"), + Reference< XInterface >() ); + } Type const & rType = (*pEntry->m_type.getCppuType)( 0 ); OSL_ENSURE( rType.getTypeClass() == TypeClass_INTERFACE, "### wrong helper init: expected interface!" ); OSL_ENSURE( ! isXInterface( rType.getTypeLibType()->pTypeName ), "### want to implement XInterface: template argument is XInterface?!?!?!" );