Try to fix a rare crash
This commit is contained in:
parent
f56cf03b6a
commit
ed376d329c
@ -427,7 +427,7 @@ namespace Online
|
|||||||
OnlineProfile::RelationInfo * relation_info =
|
OnlineProfile::RelationInfo * relation_info =
|
||||||
profile->getRelationInfo();
|
profile->getRelationInfo();
|
||||||
|
|
||||||
if (relation_info->isOnline())
|
if (relation_info && relation_info->isOnline())
|
||||||
{
|
{
|
||||||
if (!now_online) // the friend went offline
|
if (!now_online) // the friend went offline
|
||||||
{
|
{
|
||||||
@ -435,7 +435,7 @@ namespace Online
|
|||||||
went_offline = true;
|
went_offline = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (relation_info)
|
||||||
{
|
{
|
||||||
if (now_online) // friend came online
|
if (now_online) // friend came online
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user