diff options
author | diva | 2008-12-21 02:25:14 +0000 |
---|---|---|
committer | diva | 2008-12-21 02:25:14 +0000 |
commit | 9af9f648efe5ec3b59d05a453e15cbe975ab24be (patch) | |
tree | 780652e234628499ffc90bb09bfde06943dd75ea /OpenSim | |
parent | Mantis#2860. Thank you kindly, Thomax for a patch that: (diff) | |
download | opensim-SC-9af9f648efe5ec3b59d05a453e15cbe975ab24be.zip opensim-SC-9af9f648efe5ec3b59d05a453e15cbe975ab24be.tar.gz opensim-SC-9af9f648efe5ec3b59d05a453e15cbe975ab24be.tar.bz2 opensim-SC-9af9f648efe5ec3b59d05a453e15cbe975ab24be.tar.xz |
Small null check in DeregisterHandlers.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index c83c2a6..91acfbe 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -221,9 +221,12 @@ namespace OpenSim.Framework.Communications.Capabilities | |||
221 | /// <param name="restMethod"></param> | 221 | /// <param name="restMethod"></param> |
222 | public void DeregisterHandlers() | 222 | public void DeregisterHandlers() |
223 | { | 223 | { |
224 | foreach (string capsName in m_capsHandlers.Caps) | 224 | if (m_capsHandlers != null) |
225 | { | 225 | { |
226 | m_capsHandlers.Remove(capsName); | 226 | foreach (string capsName in m_capsHandlers.Caps) |
227 | { | ||
228 | m_capsHandlers.Remove(capsName); | ||
229 | } | ||
227 | } | 230 | } |
228 | } | 231 | } |
229 | 232 | ||