cid#1597273 Unchecked return value

Change-Id: Ia48abe54185c23f740b1385ca2bfd45950209f77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167434
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-05-10 08:48:38 +01:00
parent f60126a6bf
commit 4c602fd255

View file

@ -2159,9 +2159,7 @@ IMPL_LINK(SbaTableQueryBrowser, OnExpandEntry, const weld::TreeIter&, rParent, b
// it could be that we already have a connection
SharedConnection xConnection;
ensureConnection(xFirstParent.get(), xConnection);
if ( xConnection.is() )
if (ensureConnection(xFirstParent.get(), xConnection) && xConnection.is())
{
SQLExceptionInfo aInfo;
try