diff options
author | UbitUmarov | 2016-12-09 22:56:11 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-09 22:56:11 +0000 |
commit | 66990394c9a60e596cc07c4b547291afd7447133 (patch) | |
tree | cd5d873276e7d4b02c488e838e1d959f67fa9f37 | |
parent | The new string-parameter: "region_object_bonus" for llGetEnv(string name); (diff) | |
download | opensim-SC-66990394c9a60e596cc07c4b547291afd7447133.zip opensim-SC-66990394c9a60e596cc07c4b547291afd7447133.tar.gz opensim-SC-66990394c9a60e596cc07c4b547291afd7447133.tar.bz2 opensim-SC-66990394c9a60e596cc07c4b547291afd7447133.tar.xz |
avoid a null ref
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs | 2 |
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); |