summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-03-05 11:06:28 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-06-17 14:38:46 +0200
commita58affd7709c439216ead5d3d79a50d580895494 (patch)
tree21e7e5170dcbae754cfc457c478d2dea4b1d7800 /basctl
parent8992def7c010d001052b11ec6400b1847dcad774 (diff)
protect against NULL current SfxViewShell
Change-Id: I748493de799902f5acf905c7ce919e3ebbf1a800
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 0b60a6f397a2..8e0fe9f01d84 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -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() )
{