tdf#136637: handle SQLException in OStatementBase::disposing

The problem was unhandled exception thrown from destructor, resulting
in a crash.

Change-Id: Ib9d2deb2fe9745bf8df060c4e5bf6436b4ca468d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170790
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-07-20 14:56:24 +05:00
parent 0999687367
commit 1edfbb3108

View file

@ -152,6 +152,9 @@ void OStatementBase::disposing()
catch(RuntimeException& )
{// don't care for anymore
}
catch (SQLException&)
{// don't care for anymore
}
}
m_xAggregateAsSet = nullptr;