* Minor guard for null case.

[Provided by openlifegrid.com]
ThreadPoolClientBranch
lbsa71 2008-02-13 20:51:59 +00:00
parent b705ba21f3
commit b05409b03f
1 changed files with 2 additions and 2 deletions

View File

@ -317,8 +317,8 @@ namespace OpenSim.Grid.GridServer
if (OldSim == null || OldSim.UUID == TheSim.UUID)
{
if ((OldSim == null && TheSim.regionRecvKey == config.SimSendKey &&
TheSim.regionRecvKey == config.SimRecvKey) ||
(OldSim.regionRecvKey == TheSim.regionRecvKey &&
TheSim.regionRecvKey == config.SimRecvKey) ||
(OldSim != null && OldSim.regionRecvKey == TheSim.regionRecvKey &&
OldSim.regionSendKey == TheSim.regionSendKey))
{
m_log.Info("[GRID]: Adding region " + TheSim.regionLocX + " , " + TheSim.regionLocY + " , " +