* Added null exception handler where we couldn't locate a user data record in the cache for the user

* More OGP tweaks to make it play nice in an error condition.
* Still Experimental.
This commit is contained in:
Teravus Ovares
2008-09-19 01:11:40 +00:00
parent a1217410e5
commit 610313ea64
2 changed files with 18 additions and 2 deletions

View File

@@ -2620,7 +2620,14 @@ namespace OpenSim.Region.Environment.Scenes
m_authenticateHandler.AddNewCircuit(agent.circuitcode, agent);
// rewrite session_id
CachedUserInfo userinfo = CommsManager.UserProfileCacheService.GetUserDetails(agent.AgentID);
userinfo.SessionID = agent.SessionID;
if (userinfo != null)
{
userinfo.SessionID = agent.SessionID;
}
else
{
m_log.WarnFormat("[USERINFO CACHE]: We couldn't find a User Info record for {0}. This is usually an indication that the UUID we're looking up is invalid", agent.AgentID);
}
}
else
{