Small null check in DeregisterHandlers.

0.6.2-post-fixes
diva 2008-12-21 02:25:14 +00:00
parent f8f93f4c48
commit 9af9f648ef
1 changed files with 5 additions and 2 deletions

View File

@ -221,9 +221,12 @@ namespace OpenSim.Framework.Communications.Capabilities
/// <param name="restMethod"></param>
public void DeregisterHandlers()
{
foreach (string capsName in m_capsHandlers.Caps)
if (m_capsHandlers != null)
{
m_capsHandlers.Remove(capsName);
foreach (string capsName in m_capsHandlers.Caps)
{
m_capsHandlers.Remove(capsName);
}
}
}