summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-05-31 05:52:00 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-05-31 03:56:12 +0000
commit8eb341ac9ebad8d8af399ce41eb02268aa25fa56 (patch)
tree9afc7e9507542094297ae8e49d9d854a4885338b /dbaccess/source/ui/browser
parent1b35c7ea4f7fe1473dbe08ab93b7259403b290ff (diff)
fdo#73352 don't crash if clearWarnings throws an SQLException
Change-Id: If67bda43589834e4c922056145bc60884728cb8a Reviewed-on: https://gerrit.libreoffice.org/9591 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index cae373c54c82..fd19148788c8 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -600,7 +600,16 @@ void SbaXDataBrowserController::onStartLoading( const Reference< XLoadable >& _r
Reference< XWarningsSupplier > xWarnings( _rxLoadable, UNO_QUERY );
if ( xWarnings.is() )
- xWarnings->clearWarnings();
+ {
+ try
+ {
+ xWarnings->clearWarnings();
+ }
+ catch(const SQLException& e)
+ {
+ DBG_UNHANDLED_EXCEPTION();
+ }
+ }
}
void SbaXDataBrowserController::impl_checkForCannotSelectUnfiltered( const SQLExceptionInfo& _rError )
@@ -666,7 +675,7 @@ bool SbaXDataBrowserController::reloadForm( const Reference< XLoadable >& _rxLoa
}
catch(const SQLException& e)
{
- (void)e;
+ DBG_UNHANDLED_EXCEPTION();
}
}