sw/source/ui/misc/glossary.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e1cd4b81d3133c460eef10efc7744f9a644b2c5b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Aug 16 09:16:43 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Aug 17 00:36:15 2022 +0200

    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 <caol...@redhat.com>

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();
         }
     }

Reply via email to