summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2000-09-29 07:48:07 +0000
committerJörg Budischewski <jbu@openoffice.org>2000-09-29 07:48:07 +0000
commit832e2e75796a6f0b3bace29646f654be636a4ba7 (patch)
treeadfff30988e801a880a213f06c5c22091a52e227 /cppuhelper
parentb84e9287b7fa431d79a66ebb4f09bc8572de9623 (diff)
catching runtimeexception during disposing
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/interfacecontainer.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx
index baf0d696249a..18856a8f139f 100644
--- a/cppuhelper/source/interfacecontainer.cxx
+++ b/cppuhelper/source/interfacecontainer.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: interfacecontainer.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 15:26:10 $
+ * last change: $Author: jbu $ $Date: 2000-09-29 08:48:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -355,9 +355,17 @@ void OInterfaceContainerHelper::disposeAndClear( const EventObject & rEvt )
aGuard.clear();
while( aIt.hasMoreElements() )
{
- Reference<XEventListener > xLst( aIt.next(), UNO_QUERY );
- if( xLst.is() )
- xLst->disposing( rEvt );
+ try
+ {
+ Reference<XEventListener > xLst( aIt.next(), UNO_QUERY );
+ if( xLst.is() )
+ xLst->disposing( rEvt );
+ }
+ catch ( RuntimeException & )
+ {
+ // be robust, if e.g. a remote bridge has disposed already.
+ // there is no way, to delegate the error to the caller :o(.
+ }
}
}