summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-16 09:16:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-17 00:36:15 +0200
commite1cd4b81d3133c460eef10efc7744f9a644b2c5b (patch)
treefb80b401d8476630613e1ea932e0bbd8d7437b5b /sw
parentcc396384b13a71a5ac2732d22b076c98316d64a0 (diff)
cid#1500517 Explicit null dereferenced
Change-Id: I83ccacf69c22d8c05374bf5f06eb5e7ee734b12f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138358 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/glossary.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 4e657a260d02..2f3347d1e1ef 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -763,7 +763,7 @@ void SwGlossaryDlg::Init()
if (!xSelEntry)
{
xSelEntry = std::move(xSearch);
- if (!m_xCategoryBox->get_iter_first(*xSelEntry))
+ if (!xSelEntry || !m_xCategoryBox->get_iter_first(*xSelEntry))
xSelEntry.reset();
}
}