Kaydet (Commit) 8eb341ac authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#73352 don't crash if clearWarnings throws an SQLException

Change-Id: If67bda43589834e4c922056145bc60884728cb8a
Reviewed-on: https://gerrit.libreoffice.org/9591Reviewed-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
Tested-by: 's avatarLionel Elie Mamane <lionel@mamane.lu>
üst 1b35c7ea
......@@ -600,7 +600,16 @@ void SbaXDataBrowserController::onStartLoading( const Reference< XLoadable >& _r
Reference< XWarningsSupplier > xWarnings( _rxLoadable, UNO_QUERY );
if ( xWarnings.is() )
{
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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment