linguistic/source/gciterator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a65d5c9d7117370e95c2fa55f47e4e047307ff72
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Jan 8 19:48:47 2024 +0000
Commit:     Gökay ŞATIR <[email protected]>
CommitDate: Tue Jan 9 08:31:19 2024 +0100

    avoid null deref of xIgnoreAll
    
    Change-Id: Ib8e3309c046a74ca13f88fd0a668f3e1d6b909b0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161802
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Gökay ŞATIR <[email protected]>

diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 0734ba4cb7a2..466509f3a214 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 = 
OUString(rRes.aText.subView(rError.nErrorStart, rError.nErrorLength));
-                    bool ignored = xIgnoreAll->getEntry(word).is();
+                    bool ignored = xIgnoreAll.is() && 
xIgnoreAll->getEntry(word).is();
 
                     if (!ignored)
                     {

Reply via email to