diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-08-23 17:46:38 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-08-23 17:46:38 +0300 |
commit | 4fc4d965c10ff4b40bab31ef3122b2a5be6851b7 (patch) | |
tree | a2dbf59fa3efad6a075129b170e673fa5c96ebe5 /indra | |
parent | cb135bc9e85e1da92d5fed295e80677bd326b639 (diff) |
SL-15868 FIXED Crash in LLFloaterIMSessionTab::enableDisableCallBtn
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 7541bb5efe..76723da77e 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -384,13 +384,16 @@ void LLFloaterIMSessionTab::draw() void LLFloaterIMSessionTab::enableDisableCallBtn() { - mVoiceButton->setEnabled( - mSessionID.notNull() - && mSession - && mSession->mSessionInitialized - && LLVoiceClient::getInstance()->voiceEnabled() - && LLVoiceClient::getInstance()->isVoiceWorking() - && mSession->mCallBackEnabled); + if (LLVoiceClient::instanceExists()) + { + mVoiceButton->setEnabled( + mSessionID.notNull() + && mSession + && mSession->mSessionInitialized + && LLVoiceClient::getInstance()->voiceEnabled() + && LLVoiceClient::getInstance()->isVoiceWorking() + && mSession->mCallBackEnabled); + } } void LLFloaterIMSessionTab::onFocusReceived() |