Fixes a case where neighboring region info cannot be obtained

and the region server tries to output the region information
using the unobtainable RegionInfo.
Caused a crash in GS1GridServices.cs, line 928
This commit is contained in:
Melanie Thielker
2008-08-15 10:26:03 +00:00
parent dde21314e7
commit 6717839d65

View File

@@ -925,9 +925,12 @@ namespace OpenSim.Region.Communications.OGS1
{
NoteDeadRegion(regionHandle);
m_log.WarnFormat(
"[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}",
regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY);
if(regInfo != null)
{
m_log.WarnFormat(
"[OGS1 GRID SERVICES]: Remoting Error: Unable to connect to adjacent region: {0} {1},{2}",
regInfo.RegionName, regInfo.RegionLocX, regInfo.RegionLocY);
}
m_log.DebugFormat("[OGS1 GRID SERVICES]: {0} {1}", e.Source, e.Message);
return false;