diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 09:18:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 12:02:44 +0000 |
commit | cb19a99ba8a81a4d869313652c0fe3cc3d0e221e (patch) | |
tree | e19527146d29a289f7806b4a79d57a57aca298f9 /sd | |
parent | a05da74d0bdf691f097aa925fa59e21203ade8ed (diff) |
coverity#1251173 Dereference before null check
Change-Id: I3e5a70289785f905350c895b6c869eaebe360bf8
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 6 |
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(); } } |