avoid a null ref

melanie
UbitUmarov 2016-12-09 22:56:11 +00:00
parent 575825193b
commit 66990394c9
1 changed files with 1 additions and 1 deletions

View File

@ -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);