summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authornpower Developer <npower@openoffice.org>2010-03-30 13:01:30 +0100
committernpower Developer <npower@openoffice.org>2010-03-30 13:01:30 +0100
commitc4f5d0e9250962dfaa3f3ecdda9e0a3387c3e906 (patch)
treec5f55c34f28c8c71b22253e7d34f84f80fa35ba0 /basic/source
parent748a986e2fcf3feb97eda4fa5d077f1083a0a73d (diff)
npowermiscfixes: #i109644# fix potential crash when using 'option VBASupport 1' ( regression introduced by new lazy loading for this issue )
Diffstat (limited to 'basic/source')
-rwxr-xr-xbasic/source/classes/sb.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index ae290c04694f..3373442e5eb2 100755
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -81,7 +81,16 @@ SbxObject* StarBASIC::getVBAGlobals( )
{
Reference< XMultiServiceFactory > xDocFac( aThisDoc, UNO_QUERY );
if ( xDocFac.is() )
- xDocFac->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.VBAGlobals" ) ) );
+ {
+ try
+ {
+ xDocFac->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.VBAGlobals" ) ) );
+ }
+ catch( Exception& )
+ {
+ // Ignore
+ }
+ }
}
pVBAGlobals = (SbUnoObject*)Find( aVBAHook , SbxCLASS_DONTCARE );
}