summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-09-17 13:52:02 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-12-04 07:17:07 +0000
commit95d1169195a0e303e4a882c7e37faab0b6bc94a6 (patch)
tree9d507a6672d070603eb1bb1d8ebe3c61586c8b37 /sc/source/ui/vba
parentf528f48a55e7acffaba70f719afa07b37863346f (diff)
mib19: #163566# do not throw assertion if container is not available
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbaworksheet.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx
index d5fe171afde2..56fa49333d6a 100644
--- a/sc/source/ui/vba/vbaworksheet.cxx
+++ b/sc/source/ui/vba/vbaworksheet.cxx
@@ -990,7 +990,8 @@ ScVbaWorksheet::getFormControls()
// get the www-standard container ( maybe we should access the
// 'www-standard' by name rather than index, this seems an
// implementation detail
- xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY_THROW );
+ if( xIndexAccess->hasElements() )
+ xFormControls.set( xIndexAccess->getByIndex(0), uno::UNO_QUERY );
}
catch( uno::Exception& )