diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-23 12:51:47 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-23 12:51:47 +0000 |
commit | 9ccdd5c79836a5dfed12cd0e50fecabc879e0907 (patch) | |
tree | 844cf8fa7acd5333287b21acc20b116542d7bdc0 /dbaccess | |
parent | 680e6e02813e1eca09c740e1e86c555b1c8d166c (diff) |
#90086# check if connection is null when null throw EXception
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableController.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx index 585ed5c708de..30452411f752 100644 --- a/dbaccess/source/ui/tabledesign/TableController.cxx +++ b/dbaccess/source/ui/tabledesign/TableController.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableController.cxx,v $ * - * $Revision: 1.46 $ + * $Revision: 1.47 $ * - * last change: $Author: oj $ $Date: 2001-07-18 09:23:07 $ + * last change: $Author: oj $ $Date: 2001-07-23 13:51:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -685,17 +685,21 @@ void SAL_CALL OTableController::initialize( const Sequence< Any >& aArguments ) } } + sal_Bool bFirstTry = sal_False; if (!m_xConnection.is()) { // whoever instantiated us did not give us a connection to share. Okay, create an own one createNewConnection(sal_False); + bFirstTry = sal_True; } if(!m_xConnection.is()) // so what should otherwise { + if(!bFirstTry) { String aMessage(ModuleRes(RID_STR_CONNECTION_LOST)); ODataView* pWindow = getView(); InfoBox(pWindow, aMessage).Execute(); } + throw Exception(); } assignTable(); |