summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-14 09:18:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-14 12:02:44 +0000
commitcb19a99ba8a81a4d869313652c0fe3cc3d0e221e (patch)
treee19527146d29a289f7806b4a79d57a57aca298f9 /sd
parenta05da74d0bdf691f097aa925fa59e21203ade8ed (diff)
coverity#1251173 Dereference before null check
Change-Id: I3e5a70289785f905350c895b6c869eaebe360bf8
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviewse.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index a66a09138bdd..f5b977c4950b 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -667,17 +667,17 @@ void DrawViewShell::FuDeleteSelectedObjects()
bConsumed = true;
}
- if (!bConsumed)
+ if (!bConsumed && mpDrawView)
{
::vcl::KeyCode aKCode(KEY_DELETE);
KeyEvent aKEvt( 0, aKCode);
bConsumed = mpDrawView->getSmartTags().KeyInput( aKEvt );
- if( !bConsumed && HasCurrentFunction() )
+ if (!bConsumed && HasCurrentFunction())
bConsumed = GetCurrentFunction()->KeyInput(aKEvt);
- if( !bConsumed && mpDrawView )
+ if (!bConsumed)
mpDrawView->DeleteMarked();
}
}