MAINT-8417 Fixed startup crash in doFrame() after failing to access vfs cache

master
andreykproductengine 2018-03-21 19:31:54 +02:00
parent 75f5df57b4
commit 36060a613a
1 changed files with 2 additions and 1 deletions

View File

@ -1399,7 +1399,8 @@ bool LLAppViewer::doFrame()
// Scan keyboard for movement keys. Command keys and typing
// are handled by windows callbacks. Don't do this until we're
// done initializing. JC
if ((gHeadlessClient || gViewerWindow->getWindow()->getVisible())
if (gViewerWindow
&& (gHeadlessClient || gViewerWindow->getWindow()->getVisible())
&& gViewerWindow->getActive()
&& !gViewerWindow->getWindow()->getMinimized()
&& LLStartUp::getStartupState() == STATE_STARTED