coverity#1251173 Dereference before null check
Change-Id: I3e5a70289785f905350c895b6c869eaebe360bf8
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user