Fixed normal bug EXT-2327 "Incoming call dialog crashes after logout".
- Added NULL pointer checks. --HG-- branch : product-enginemeow-7.2.2
parent
34771c04c3
commit
31cc68ecd3
|
|
@ -1157,6 +1157,9 @@ void LLIncomingCallDialog::onStartIM(void* user_data)
|
|||
|
||||
void LLIncomingCallDialog::processCallResponse(S32 response)
|
||||
{
|
||||
if (!gIMMgr)
|
||||
return;
|
||||
|
||||
LLUUID session_id = mPayload["session_id"].asUUID();
|
||||
EInstantMessage type = (EInstantMessage)mPayload["type"].asInteger();
|
||||
LLIMMgr::EInvitationType inv_type = (LLIMMgr::EInvitationType)mPayload["inv_type"].asInteger();
|
||||
|
|
@ -1254,6 +1257,9 @@ void LLIncomingCallDialog::processCallResponse(S32 response)
|
|||
|
||||
bool inviteUserResponse(const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
if (!gIMMgr)
|
||||
return false;
|
||||
|
||||
const LLSD& payload = notification["payload"];
|
||||
LLUUID session_id = payload["session_id"].asUUID();
|
||||
EInstantMessage type = (EInstantMessage)payload["type"].asInteger();
|
||||
|
|
|
|||
Loading…
Reference in New Issue