summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-17 19:57:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-18 09:36:31 +0200
commit5e9e09e7bff0cb99b48dcf3af942a45b573ac7b5 (patch)
treed0fe80b95d381b1ca84015450ae61a28e6dbf362 /sd
parentde7ffaea58e5813c6e076f3612735c7c7cb70509 (diff)
cid#1451632 Dereference after null check
Change-Id: I5ee95a9341896b8462235ece933fa70773247c92 Reviewed-on: https://gerrit.libreoffice.org/75802 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/sdwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 7a30096c52fd..fa355dfea869 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -268,7 +268,7 @@ void Window::Command(const CommandEvent& rCEvt)
//show the text edit outliner view cursor
else if (!HasFocus() && rCEvt.GetCommand() == CommandEventId::CursorPos)
{
- OutlinerView* pOLV = mpViewShell->GetView()->GetTextEditOutlinerView();
+ OutlinerView* pOLV = mpViewShell ? mpViewShell->GetView()->GetTextEditOutlinerView() : nullptr;
if (pOLV && this == pOLV->GetWindow())
{
GrabFocus();