[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 10 18:01:43 UTC 2020


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

New commits:
commit 2048dc640a1ddcadc7c0ea49ddabcee0f7d87624
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 10 14:01:59 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Oct 10 20:00:54 2020 +0200

    cid#1467976 Dereference after null check
    
    Change-Id: I84a4cc6b26bd40888d7fca6a1974a8720a6179f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104170
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx
index 59165885e5bd..c4c14d796182 100644
--- a/sw/source/uibase/uiview/view0.cxx
+++ b/sw/source/uibase/uiview/view0.cxx
@@ -533,7 +533,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
     case SID_AUTOSPELL_CHECK:
         const SfxPoolItem* pItem;
 
-        if (pArgs->HasItem(FN_PARAM_1, &pItem))
+        if (pArgs && pArgs->HasItem(FN_PARAM_1, &pItem))
             bSet = static_cast<const SfxBoolItem*>(pItem)->GetValue();
         else if( STATE_TOGGLE == eState )
         {


More information about the Libreoffice-commits mailing list