SL-12164 attempt to close viewer on window init resulted in crash

meow-7.2.2
andreykproductengine 2019-10-21 21:45:45 +03:00
parent f60187d224
commit cc32c70518
1 changed files with 3 additions and 1 deletions

View File

@ -3991,7 +3991,9 @@ static LLNotificationFunctorRegistration finish_quit_reg("ConfirmQuit", finish_q
void LLAppViewer::userQuit()
{
if (gDisconnected || gViewerWindow->getProgressView()->getVisible())
if (gDisconnected
|| !gViewerWindow
|| (gViewerWindow->getProgressView() && gViewerWindow->getProgressView()->getVisible()))
{
requestQuit();
}