From cb19a99ba8a81a4d869313652c0fe3cc3d0e221e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Nov 2014 09:18:05 +0000 Subject: coverity#1251173 Dereference before null check Change-Id: I3e5a70289785f905350c895b6c869eaebe360bf8 --- sd/source/ui/view/drviewse.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sd') 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(); } } -- cgit