fix a null ref

melanie
UbitUmarov 2016-11-30 10:08:49 +00:00
parent 2020cafc30
commit adee1c1bb0
1 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
//m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count); //m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count);
MapBlockData data; MapBlockData data;
if (regionInfos.Count > 0) if (regionInfos != null && regionInfos.Count > 0)
{ {
foreach (GridRegion info in regionInfos) foreach (GridRegion info in regionInfos)
{ {