diff options
-rw-r--r-- | basctl/source/basicide/basides2.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/basctl/source/basicide/basides2.cxx b/basctl/source/basicide/basides2.cxx index 3337f9f19994..e08fe951effc 100644 --- a/basctl/source/basicide/basides2.cxx +++ b/basctl/source/basicide/basides2.cxx @@ -213,10 +213,12 @@ ModulWindow* Shell::CreateBasWin( const ScriptDocument& rDocument, const OUStrin } pTabBar->InsertPage( (sal_uInt16)nKey, aModName ); pTabBar->Sort(); - pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar ); - if ( !pCurWin ) - SetCurWindow( pWin, false, false ); - + if(pWin) + { + pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar ); + if ( !pCurWin ) + SetCurWindow( pWin, false, false ); + } bCreatingWindow = false; return pWin; } |