aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-07-21 13:40:08 +0000
committerCharles Krinke2008-07-21 13:40:08 +0000
commita432a07005c700222de612f408fe2921d2348825 (patch)
tree40418a48a705124291dfbac48a12c75a30964a4e /OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
parent* eliminated some warnings and added some const and readonlies (diff)
downloadopensim-SC_OLD-a432a07005c700222de612f408fe2921d2348825.zip
opensim-SC_OLD-a432a07005c700222de612f408fe2921d2348825.tar.gz
opensim-SC_OLD-a432a07005c700222de612f408fe2921d2348825.tar.bz2
opensim-SC_OLD-a432a07005c700222de612f408fe2921d2348825.tar.xz
Mantis#1798. Thank you kindly, StrawberryFride for a patch that:
Fixes a couple of places where null reference exceptions were being caught and ignored rather than null checks being performed.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SimStatsReporter.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SimStatsReporter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
index 60b5c10..f46aba4 100644
--- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
@@ -153,7 +153,7 @@ namespace OpenSim.Region.Environment.Scenes
153 try 153 try
154 { 154 {
155 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>(); 155 IEstateModule estateModule = m_scene.RequestModuleInterface<IEstateModule>();
156 statpack.Region.RegionFlags = estateModule.GetRegionFlags(); 156 statpack.Region.RegionFlags = estateModule != null ? estateModule.GetRegionFlags() : (uint) 0;
157 } 157 }
158 catch (Exception) 158 catch (Exception)
159 { 159 {