* Added NullReference check to EventQueueGetModule.

0.6.0-stable
Adam Frisby 2008-10-10 14:46:01 +00:00
parent fa55fc89d8
commit 596366324a
1 changed files with 8 additions and 2 deletions

View File

@ -149,8 +149,14 @@ namespace OpenSim.Region.Environment.Modules.Framework
public bool Enqueue(LLSD ev, UUID avatarID)
{
m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName);
BlockingLLSDQueue queue = GetQueue(avatarID);
queue.Enqueue(ev);
try
{
BlockingLLSDQueue queue = GetQueue(avatarID);
queue.Enqueue(ev);
} catch(NullReferenceException)
{
return false;
}
return true;
}
#endregion