summaryrefslogtreecommitdiff
path: root/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r--indra/newview/llstartup.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index e5c272a264..198113cfb1 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -3270,14 +3270,22 @@ void reset_login()
if ( gViewerWindow )
{ // Hide menus and normal buttons
gViewerWindow->setNormalControlsVisible( false );
- gLoginMenuBarView->setVisible( true );
- gLoginMenuBarView->setEnabled( true );
+
+ if (gLoginMenuBarView)
+ {
+ gLoginMenuBarView->setVisible(true);
+ gLoginMenuBarView->setEnabled(true);
+ }
+ else
+ {
+ LL_WARNS("AppInit") << "gLoginMenuBarView not initialized" << LL_ENDL;
+ }
}
// Hide any other stuff
LLFloaterReg::hideVisibleInstances();
- if (LLStartUp::getStartupState() > STATE_WORLD_INIT)
+ if (LLStartUp::getStartupState() > STATE_WORLD_INIT && gViewerWindow)
{
gViewerWindow->resetStatusBarContainer();
}