diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index eb10975..1e0f01f 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -469,16 +469,16 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
469 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); | 469 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); |
470 | 470 | ||
471 | SensorRepeat sr = AsyncCommandManager.GetSensorRepeatPlugin(this); | 471 | SensorRepeat sr = AsyncCommandManager.GetSensorRepeatPlugin(this); |
472 | sb.AppendFormat("Sensors : {0}\n", sr.SensorsCount); | 472 | sb.AppendFormat("Sensors : {0}\n", sr != null ? sr.SensorsCount : 0); |
473 | 473 | ||
474 | Dataserver ds = AsyncCommandManager.GetDataserverPlugin(this); | 474 | Dataserver ds = AsyncCommandManager.GetDataserverPlugin(this); |
475 | sb.AppendFormat("Dataserver requests : {0}\n", ds.DataserverRequestsCount); | 475 | sb.AppendFormat("Dataserver requests : {0}\n", ds != null ? ds.DataserverRequestsCount : 0); |
476 | 476 | ||
477 | Timer t = AsyncCommandManager.GetTimerPlugin(this); | 477 | Timer t = AsyncCommandManager.GetTimerPlugin(this); |
478 | sb.AppendFormat("Timers : {0}\n", t.TimersCount); | 478 | sb.AppendFormat("Timers : {0}\n", t != null ? t.TimersCount : 0); |
479 | 479 | ||
480 | Listener l = AsyncCommandManager.GetListenerPlugin(this); | 480 | Listener l = AsyncCommandManager.GetListenerPlugin(this); |
481 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); | 481 | sb.AppendFormat("Listeners : {0}\n", l != null ? l.ListenerCount : 0); |
482 | 482 | ||
483 | return sb.ToString(); | 483 | return sb.ToString(); |
484 | } | 484 | } |