diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-08 19:48:47 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-01-17 11:48:32 +0100 |
commit | 0c5924adc8353df9bf4e5ff7b2cc06ec22675419 (patch) | |
tree | 019b71d95612546ef3db07ee9c077173d22bbb79 | |
parent | d0393bc3d8e1d5d7dc2d3305473a8c6c7ef219bb (diff) |
avoid null deref of xIgnoreAll
Change-Id: Ib8e3309c046a74ca13f88fd0a668f3e1d6b909b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161802
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161815
Tested-by: Jenkins
-rw-r--r-- | linguistic/source/gciterator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 2f1232289c10..b35882785995 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -417,7 +417,7 @@ void GrammarCheckingIterator::ProcessResult( for (const linguistic2::SingleProofreadingError &rError : rRes.aErrors) { OUString word(rRes.aText.subView(rError.nErrorStart, rError.nErrorLength)); - bool ignored = xIgnoreAll->getEntry(word).is(); + bool ignored = xIgnoreAll.is() && xIgnoreAll->getEntry(word).is(); if (!ignored) { |