mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
avoid a null ref
This commit is contained in:
@@ -298,9 +298,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
List<GridRegion> grinfo = null;
|
||||
if (String.IsNullOrEmpty(regionName))
|
||||
{
|
||||
List<GridRegion> grinfos = m_RemoteGridService.GetDefaultRegions(UUID.Zero);
|
||||
if (grinfos == null)
|
||||
m_log.Warn("[REMOTE GRID CONNECTOR] returned null default regions");
|
||||
List<GridRegion> grinfos = m_RemoteGridService.GetDefaultRegions(scopeID);
|
||||
if (grinfos == null || grinfos.Count == 0)
|
||||
m_log.Warn("[REMOTE GRID CONNECTOR] returned no default regions");
|
||||
else
|
||||
{
|
||||
m_log.WarnFormat("[REMOTE GRID CONNECTOR] returned default regions {0}, ...", grinfos[0].RegionName);
|
||||
|
||||
Reference in New Issue
Block a user