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
0.6.0-stable
Melanie Thielker 2008-08-15 10:26:03 +00:00
parent dde21314e7
commit 6717839d65
1 changed files with 6 additions and 3 deletions

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;