summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r--indra/newview/llpanellogin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 868e02f28b..ae010b2259 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -189,7 +189,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
mPasswordLength(0),
mLocationLength(0),
mShowFavorites(false),
- mAlertNotif(false)
+ mAlertNotif(false),
+ mLoginBtn(nullptr)
{
setBackgroundVisible(false);
setBackgroundOpaque(true);
@@ -1196,6 +1197,10 @@ void LLPanelLogin::updateServer()
void LLPanelLogin::updateLoginButtons()
{
+ if (!mLoginBtn)
+ {
+ return;
+ }
mLoginBtn->setEnabled(mUsernameLength != 0 && mPasswordLength != 0 && !mAlertNotif);
if (!mFirstLoginThisInstall)