diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 14:01:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-10 20:00:54 +0200 |
commit | 2048dc640a1ddcadc7c0ea49ddabcee0f7d87624 (patch) | |
tree | ac70a6ef7345e8ef3aab085d2b49884e9cd64fb1 | |
parent | fe107c1a32b999af409e902cffb6f26c11818203 (diff) |
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@redhat.com>
-rw-r--r-- | sw/source/uibase/uiview/view0.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |