summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VUser.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-11-12 08:17:39 +0000
committerOcke Janssen <oj@openoffice.org>2002-11-12 08:17:39 +0000
commit17867c398aab1666276f0d572f5b4b052402db8c (patch)
tree0f63717252778005427bfd570abb6d1f36ad596c /connectivity/source/sdbcx/VUser.cxx
parent120163ddc7b42ebab982ccddb8cc0a319bb780bf (diff)
#104978# insert catch around refresh methods
Diffstat (limited to 'connectivity/source/sdbcx/VUser.cxx')
-rw-r--r--connectivity/source/sdbcx/VUser.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/connectivity/source/sdbcx/VUser.cxx b/connectivity/source/sdbcx/VUser.cxx
index 19afea536f43..a97e9070f354 100644
--- a/connectivity/source/sdbcx/VUser.cxx
+++ b/connectivity/source/sdbcx/VUser.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: VUser.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: hr $ $Date: 2001-10-16 18:14:25 $
+ * last change: $Author: oj $ $Date: 2002-11-12 09:17:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,6 +157,20 @@ Reference< XNameAccess > SAL_CALL OUser::getGroups( ) throw(RuntimeException)
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(OUser_BASE::rBHelper.bDisposed);
+ try
+ {
+ if ( !m_pGroups )
+ refreshGroups();
+ }
+ catch( const RuntimeException& )
+ {
+ // allowed to leave this method
+ throw;
+ }
+ catch( const Exception& )
+ {
+ // allowed
+ }
return const_cast<OUser*>(this)->m_pGroups;
}