diff options
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index b9c8bd5f4055..9c7937c4ee62 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -167,7 +167,14 @@ SwVbaApplication::getOptions() uno::Any SAL_CALL SwVbaApplication::CommandBars( const uno::Any& aIndex ) { - return VbaApplicationBase::CommandBars( aIndex ); + try + { + return VbaApplicationBase::CommandBars( aIndex ); + } + catch (const uno::RuntimeException&) + { + return uno::Any(); + } } uno::Reference< word::XSelection > SAL_CALL |