aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneBase.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneBase.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs
index 5e7eae5..5b78617 100644
--- a/OpenSim/Region/Environment/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs
@@ -286,12 +286,20 @@ namespace OpenSim.Region.Environment.Scenes
286 } 286 }
287 } 287 }
288 288
289 /// <summary>
290 /// Get a module commander
291 /// </summary>
292 /// <param name="name"></param>
293 /// <returns>The module commander, null if no module commander with that name was found</returns>
289 public ICommander GetCommander(string name) 294 public ICommander GetCommander(string name)
290 { 295 {
291 lock (m_moduleCommanders) 296 lock (m_moduleCommanders)
292 { 297 {
293 return m_moduleCommanders[name]; 298 if (m_moduleCommanders.ContainsKey(name))
299 return m_moduleCommanders[name];
294 } 300 }
301
302 return null;
295 } 303 }
296 304
297 public Dictionary<string, ICommander> GetCommanders() 305 public Dictionary<string, ICommander> GetCommanders()