protect against NULL current SfxViewShell

Change-Id: I748493de799902f5acf905c7ce919e3ebbf1a800
This commit is contained in:
Lionel Elie Mamane
2015-06-17 14:38:46 +02:00
parent 8992def7c0
commit a58affd770
+2 -1
View File
@@ -508,7 +508,8 @@ void EditorWindow::KeyInput( const KeyEvent& rKEvt )
#endif
bool const bWasModified = pEditEngine->IsModified();
// see if there is an accelerator to be processed first
bool bDone = SfxViewShell::Current()->KeyInput( rKEvt );
SfxViewShell *pVS( SfxViewShell::Current());
bool bDone = pVS && pVS->KeyInput( rKEvt );
if( pCodeCompleteWnd->IsVisible() && CodeCompleteOptions::IsCodeCompleteOn() )
{