summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-02-12 19:07:54 +0200
committerAndrey Lihatskiy <118752495+marchcat@users.noreply.github.com>2026-02-12 19:18:23 +0200
commit47b09231c868b81c4c27b25f067f4f375ae9fcea (patch)
tree1e3e4e87927a25b2f46bab684a7d7df3a557cd33 /indra/newview
parent79b3ac7283acce7b1457f31db0a5d09167c91d9d (diff)
#5417 Fix crash at LLPanelLogin::updateLoginButtons()
Diffstat (limited to 'indra/newview')
-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)