[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - sw/source

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 19 12:04:27 UTC 2021


 sw/source/uibase/shells/textsh1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 426c6ee3b4dfe64d07e7e01eefd1d16defa913bf
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Jul 16 09:09:52 2021 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Jul 19 14:03:52 2021 +0200

    sw: xDictionary may be an empty reference in SID_SPELLCHECK_IGNORE_ALL
    
    Seen in a crashreport:
    
            handleFatalSignal
                    ./common/SigUtil.cpp:255
    /lib/x86_64-linux-gnu/libpthread.so.0
            __restore_rt
                    ??:?
    program/../program/libswlo.so
            SwTextShell::Execute(SfxRequest&)
                    sw/source/uibase/shells/textsh1.cxx:1496
    
    Change-Id: I709f361a1396abbb07cea06509afc41bb5f5c9a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119067
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins
    (cherry picked from commit 801b607fc6b3890eb36d310074f1a68db9ae1f5e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119173
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>

diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index c800a1683250..f8773b4d9938 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1523,7 +1523,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
             OUString sWord(xSpellAlt->getWord());
             linguistic::DictionaryError nAddRes = linguistic::AddEntryToDic( xDictionary,
                     sWord, false, OUString() );
-            if (linguistic::DictionaryError::NONE != nAddRes && !xDictionary->getEntry(sWord).is())
+            if (linguistic::DictionaryError::NONE != nAddRes && xDictionary.is() && !xDictionary->getEntry(sWord).is())
             {
                 SvxDicError(rWrtSh.GetView().GetFrameWeld(), nAddRes);
             }


More information about the Libreoffice-commits mailing list