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>
This commit is contained in:
Lionel Elie Mamane 2014-05-31 05:52:00 +02:00
parent 1b35c7ea4f
commit 8eb341ac9e

View file

@ -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();
}
}