summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/RowSetDrop.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 11:37:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 11:37:02 +0000
commitb13f38f4dd723ee61fa9b39cc18802336ae3189e (patch)
tree4ca58c286ff8815ab8a30bc0fdf9e08a81578b4a /dbaccess/source/ui/misc/RowSetDrop.cxx
parent3d77e1c11574caf7c9e3af669ea882c3b5abc7d8 (diff)
INTEGRATION: CWS dba201b (1.8.58); FILE MERGED
2005/09/21 09:51:07 oj 1.8.58.2: RESYNC: (1.8-1.9); FILE MERGED 2005/06/01 06:46:18 oj 1.8.58.1: #122995# check that resultsetmetadata isn't null
Diffstat (limited to 'dbaccess/source/ui/misc/RowSetDrop.cxx')
-rw-r--r--dbaccess/source/ui/misc/RowSetDrop.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/misc/RowSetDrop.cxx b/dbaccess/source/ui/misc/RowSetDrop.cxx
index 2881f8c4d609..49d78e596b09 100644
--- a/dbaccess/source/ui/misc/RowSetDrop.cxx
+++ b/dbaccess/source/ui/misc/RowSetDrop.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: RowSetDrop.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 16:07:32 $
+ * last change: $Author: hr $ $Date: 2005-09-23 12:37:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -91,8 +91,8 @@ void ORowSetImportExport::initialize()
OSL_ENSURE(xColumnLocate.is(),"The rowset normally should support this");
m_xTargetResultSetMetaData = Reference<XResultSetMetaDataSupplier>(m_xTargetResultSetUpdate,UNO_QUERY)->getMetaData();
- if(!m_xTargetResultSetMetaData.is() || !xColumnLocate.is())
- return;
+ if(!m_xTargetResultSetMetaData.is() || !xColumnLocate.is() || !m_xResultSetMetaData.is() )
+ throw SQLException(String(ModuleRes(STR_UNEXPECTED_ERROR)),*this,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")) ,0,Any());
sal_Int32 nCount = m_xTargetResultSetMetaData->getColumnCount();
m_aColumnMapping.reserve(nCount);