aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework
diff options
context:
space:
mode:
authorteravus2013-02-14 18:52:11 -0500
committerteravus2013-02-14 18:52:11 -0500
commit71862f34b6e97e19fceefd9ccb813ce09ef0a0c3 (patch)
treeeab3647d4549f9bb863d6a3be32e97b41f798cb8 /OpenSim/Region/CoreModules/Framework
parent* gracefully handle a Situation where a double close is called on the WebSock... (diff)
downloadopensim-SC_OLD-71862f34b6e97e19fceefd9ccb813ce09ef0a0c3.zip
opensim-SC_OLD-71862f34b6e97e19fceefd9ccb813ce09ef0a0c3.tar.gz
opensim-SC_OLD-71862f34b6e97e19fceefd9ccb813ce09ef0a0c3.tar.bz2
opensim-SC_OLD-71862f34b6e97e19fceefd9ccb813ce09ef0a0c3.tar.xz
* Handle null check on configs in module startup so that the the code can be run on 'stop on handled and unhandled null reference exceptions' mode without pausing during startup a bunch of times. I don't think exceptions were really meant for replacing a single if statement...
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs
index fb74cc6..f3436d1 100644
--- a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs
@@ -57,7 +57,7 @@ namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging
57 try 57 try
58 { 58 {
59 IConfig statConfig = source.Configs["Statistics.Binary"]; 59 IConfig statConfig = source.Configs["Statistics.Binary"];
60 if (statConfig.Contains("enabled") && statConfig.GetBoolean("enabled")) 60 if (statConfig != null && statConfig.Contains("enabled") && statConfig.GetBoolean("enabled"))
61 { 61 {
62 if (statConfig.Contains("collect_region_stats")) 62 if (statConfig.Contains("collect_region_stats"))
63 { 63 {