aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorUbitUmarov2016-12-09 22:56:11 +0000
committerUbitUmarov2016-12-09 22:56:11 +0000
commit66990394c9a60e596cc07c4b547291afd7447133 (patch)
treecd5d873276e7d4b02c488e838e1d959f67fa9f37 /OpenSim/Region/CoreModules/World
parentThe new string-parameter: "region_object_bonus" for llGetEnv(string name); (diff)
downloadopensim-SC_OLD-66990394c9a60e596cc07c4b547291afd7447133.zip
opensim-SC_OLD-66990394c9a60e596cc07c4b547291afd7447133.tar.gz
opensim-SC_OLD-66990394c9a60e596cc07c4b547291afd7447133.tar.bz2
opensim-SC_OLD-66990394c9a60e596cc07c4b547291afd7447133.tar.xz
avoid a null ref
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
index d1fe3c7..fb63c6a 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
@@ -216,7 +216,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
216 // while we don't fix the hard-coded urls 216 // while we don't fix the hard-coded urls
217 if (flags == 2) 217 if (flags == 2)
218 { 218 {
219 if (regionInfos.Count == 0) 219 if (regionInfos == null || regionInfos.Count == 0)
220 remoteClient.SendAgentAlertMessage("No regions found with that name.", true); 220 remoteClient.SendAgentAlertMessage("No regions found with that name.", true);
221 // else if (regionInfos.Count == 1) 221 // else if (regionInfos.Count == 1)
222 // remoteClient.SendAgentAlertMessage("Region found!", false); 222 // remoteClient.SendAgentAlertMessage("Region found!", false);