Fix null reference exception during close down of IRC module if the
  region was not actually initialized.
This commit is contained in:
Dr Scofield
2009-04-07 16:53:41 +00:00
parent b326b55bcd
commit e540b66a86
3 changed files with 9 additions and 185 deletions

View File

@@ -148,8 +148,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
if (!enabled)
return;
if (region == null)
return;
region.Close();
lock (m_regions) m_regions.Remove(region);
if(m_regions.Contains(region))
{
lock (m_regions) m_regions.Remove(region);
}
}
#endregion