sd/source/ui/docshell/docshel3.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 0391f4c5caa05a1dae7c39a1ba50024bf97ce4f1 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Mar 22 20:13:04 2020 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 23 10:24:58 2020 +0100 cid#1209589 Dereference after null check Change-Id: I6077e4f6e763c083f2fab29f7ada0e20184097d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90892 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits