Prevent an exception if no offline messages were retrieved.

cpu-performance
Kevin Cozens 2013-06-10 19:59:08 -04:00 committed by Justin Clark-Casey (justincc)
parent dda44e31e3
commit 3fe5e9057f
1 changed files with 3 additions and 0 deletions

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)
{