summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-22 20:13:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-23 10:24:58 +0100
commit0391f4c5caa05a1dae7c39a1ba50024bf97ce4f1 (patch)
treea83cda96e9f4fc918a14dc4cb202f7bda9c617d7 /sd/source/ui
parentb3dfe5d6dc25ec8bbf8eac92762cefb02b7f3848 (diff)
cid#1209589 Dereference after null check
Change-Id: I6077e4f6e763c083f2fab29f7ada0e20184097d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90892 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/docshell/docshel3.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx
index eeef7c8dbe8c..8ef2d9533e39 100644
--- a/sd/source/ui/docshell/docshel3.cxx
+++ b/sd/source/ui/docshell/docshel3.cxx
@@ -362,6 +362,8 @@ void DrawDocShell::Execute( SfxRequest& rReq )
break;
case SID_SPELLCHECK_IGNORE_ALL:
{
+ if (!mpViewShell)
+ return;
SdrView* pSdrView = mpViewShell->GetDrawView();
if (!pSdrView)
return;
@@ -383,6 +385,8 @@ void DrawDocShell::Execute( SfxRequest& rReq )
break;
case SID_SPELLCHECK_APPLY_SUGGESTION:
{
+ if (!mpViewShell)
+ return;
SdrView* pSdrView = mpViewShell->GetDrawView();
if (!pSdrView)
return;