sw/source/uibase/shells/textsh1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 65e884aa51dc585d0258f9eb87eb0207fa00d0dd Author: Miklos Vajna <[email protected]> AuthorDate: Fri Jul 16 09:09:52 2021 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Fri Jul 16 12:15:57 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/+/119006 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 44fa64318acb..3ea93b2c5ee4 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1493,7 +1493,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); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
