Prevent an exception if no offline messages were retrieved.
parent
dda44e31e3
commit
3fe5e9057f
|
@ -182,7 +182,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
"POST", m_RestURL + "/RetrieveMessages/", client.AgentId);
|
"POST", m_RestURL + "/RetrieveMessages/", client.AgentId);
|
||||||
|
|
||||||
if (msglist == null)
|
if (msglist == null)
|
||||||
|
{
|
||||||
m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list.");
|
m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (GridInstantMessage im in msglist)
|
foreach (GridInstantMessage im in msglist)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue