Fix null region pointer crash in LLIMView
parent
cd18835270
commit
ac75cd98fc
|
|
@ -3040,13 +3040,16 @@ void LLIncomingCallDialog::processCallResponse(S32 response, const LLSD &payload
|
|||
|
||||
gIMMgr->addSession(correct_session_name, type, session_id, payload["voice_channel_info"]);
|
||||
|
||||
std::string url = gAgent.getRegion()->getCapability(
|
||||
std::string url = gAgent.getRegionCapability(
|
||||
"ChatSessionRequest");
|
||||
|
||||
if (voice)
|
||||
{
|
||||
LLCoros::instance().launch("chatterBoxInvitationCoro",
|
||||
boost::bind(&chatterBoxInvitationCoro, url, session_id, inv_type, payload["voice_channel_info"]));
|
||||
if(!url.empty())
|
||||
{
|
||||
LLCoros::instance().launch("chatterBoxInvitationCoro",
|
||||
boost::bind(&chatterBoxInvitationCoro, url, session_id, inv_type, payload["voice_channel_info"]));
|
||||
}
|
||||
|
||||
// send notification message to the corresponding chat
|
||||
if (payload["notify_box_type"].asString() == "VoiceInviteGroup" || payload["notify_box_type"].asString() == "VoiceInviteAdHoc")
|
||||
|
|
@ -4061,9 +4064,12 @@ public:
|
|||
// Send request for chat history, if enabled.
|
||||
if (gSavedPerAccountSettings.getBOOL("FetchGroupChatHistory"))
|
||||
{
|
||||
std::string url = gAgent.getRegion()->getCapability("ChatSessionRequest");
|
||||
LLCoros::instance().launch("chatterBoxHistoryCoro",
|
||||
boost::bind(&chatterBoxHistoryCoro, url, session_id, "", "", 0));
|
||||
std::string url = gAgent.getRegionCapability("ChatSessionRequest");
|
||||
if (!url.empty())
|
||||
{
|
||||
LLCoros::instance().launch("chatterBoxHistoryCoro",
|
||||
boost::bind(&chatterBoxHistoryCoro, url, session_id, "", "", 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue