Prevent an exception if no offline messages were retrieved.

This commit is contained in:
Kevin Cozens
2013-06-10 19:59:08 -04:00
committed by Justin Clark-Casey (justincc)
parent dda44e31e3
commit 3fe5e9057f

View File

@@ -182,7 +182,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
"POST", m_RestURL + "/RetrieveMessages/", client.AgentId);
if (msglist == null)
{
m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list.");
return;
}
foreach (GridInstantMessage im in msglist)
{