summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basides1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx
index 85da8aef485b..474e792eb5c5 100644
--- a/basctl/source/basicide/basides1.cxx
+++ b/basctl/source/basicide/basides1.cxx
@@ -301,7 +301,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq )
SetCurLib( aDocument, aLibName );
- if ( rReq.GetSlot() == SID_BASICIDE_CREATEMACRO )
+ if ( pBasic && rReq.GetSlot() == SID_BASICIDE_CREATEMACRO )
{
SbModule* pModule = pBasic->FindModule( rInfo.GetModule() );
if ( !pModule )
@@ -318,7 +318,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq )
pModule = (SbModule*) pBasic->GetModules()->Get(0);
}
DBG_ASSERT( pModule, "Kein Modul!" );
- if ( !pModule->GetMethods()->Find( rInfo.GetMethod(), SbxCLASS_METHOD ) )
+ if ( pModule && !pModule->GetMethods()->Find( rInfo.GetMethod(), SbxCLASS_METHOD ) )
CreateMacro( pModule, rInfo.GetMethod() );
}
SfxViewFrame* pViewFrame = GetViewFrame();