mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
avoid a null ref
This commit is contained in:
@@ -216,7 +216,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
// while we don't fix the hard-coded urls
|
||||
if (flags == 2)
|
||||
{
|
||||
if (regionInfos.Count == 0)
|
||||
if (regionInfos == null || regionInfos.Count == 0)
|
||||
remoteClient.SendAgentAlertMessage("No regions found with that name.", true);
|
||||
// else if (regionInfos.Count == 1)
|
||||
// remoteClient.SendAgentAlertMessage("Region found!", false);
|
||||
|
||||
Reference in New Issue
Block a user