sw/source/uibase/uiview/view0.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2048dc640a1ddcadc7c0ea49ddabcee0f7d87624 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Oct 10 14:01:59 2020 +0100 Commit: Caolán McNamara <caol...@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 <caol...@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 ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits