linguistic/source/gciterator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4a3804743645730dbb6dda21eacd1c3c93f85509 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Jan 8 19:48:47 2024 +0000 Commit: Gökay ŞATIR <gokaysa...@collabora.com> CommitDate: Tue Jan 9 15:05:07 2024 +0100 avoid null deref of xIgnoreAll Change-Id: Ib8e3309c046a74ca13f88fd0a668f3e1d6b909b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161802 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Gökay ŞATIR <gokaysa...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161815 Tested-by: Jenkins 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) {