summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-10 08:48:38 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-10 11:44:11 +0200
commit4c602fd2554952fa3d2d2144fed3a19bdbfe4481 (patch)
treeab30de85f573faf990ab545b06771bc7ce86e46f /dbaccess
parentf60126a6bfae5dad4a11afcc94ddf4a58c5ce8ab (diff)
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>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index e8c6f007719e..201033332880 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -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