From 47b09231c868b81c4c27b25f067f4f375ae9fcea Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Thu, 12 Feb 2026 19:07:54 +0200 Subject: #5417 Fix crash at LLPanelLogin::updateLoginButtons() --- indra/newview/llpanellogin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra') 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) -- cgit v1.3