summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VIndex.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/VIndex.cxx
parent120163ddc7b42ebab982ccddb8cc0a319bb780bf (diff)
#104978# insert catch around refresh methods
Diffstat (limited to 'connectivity/source/sdbcx/VIndex.cxx')
-rw-r--r--connectivity/source/sdbcx/VIndex.cxx21
1 files changed, 16 insertions, 5 deletions
diff --git a/connectivity/source/sdbcx/VIndex.cxx b/connectivity/source/sdbcx/VIndex.cxx
index 0f205d0cd5cd..3f16ee3fc211 100644
--- a/connectivity/source/sdbcx/VIndex.cxx
+++ b/connectivity/source/sdbcx/VIndex.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: VIndex.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2001-10-16 18:14:25 $
+ * last change: $Author: oj $ $Date: 2002-11-12 09:17:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -209,9 +209,20 @@ Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OIndex::getColumn
::osl::MutexGuard aGuard(m_aMutex);
checkDisposed(ODescriptor_BASE::rBHelper.bDisposed);
-
- if(!m_pColumns)
- refreshColumns();
+ try
+ {
+ if ( !m_pColumns )
+ refreshColumns();
+ }
+ catch( const RuntimeException& )
+ {
+ // allowed to leave this method
+ throw;
+ }
+ catch( const Exception& )
+ {
+ // allowed
+ }
return const_cast<OIndex*>(this)->m_pColumns;
}