Small null check in DeregisterHandlers.

This commit is contained in:
diva
2008-12-21 02:25:14 +00:00
parent f8f93f4c48
commit 9af9f648ef

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);
}
}
}