mib17: prevent crash when VBAGlobals object is missing (this causes that document modules do not have an associated UNO object thus the DocObjectWrapper does not have a type provider)

This commit is contained in:
Daniel Rentz
2010-07-26 19:13:47 +02:00
parent c6431e762c
commit a11c345f88

View File

@@ -121,16 +121,16 @@ class DocObjectWrapper : public DocObjectWrapper_BASE
public:
DocObjectWrapper( SbModule* pMod );
~DocObjectWrapper();
virtual ~DocObjectWrapper();
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
virtual Sequence< sal_Int8 > SAL_CALL getImplementationId()
throw ( com::sun::star::uno::RuntimeException )
virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (RuntimeException)
{
if( !m_xAggregateTypeProv.is() )
throw RuntimeException();
return m_xAggregateTypeProv->getImplementationId();
}
virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection( ) throw (RuntimeException);