A couple of more sanity guards, but this won't fix things when user profile fetching is borked.

mysql-performance
Diva Canto 2009-12-11 20:06:42 -08:00
parent 4bbe9a51ac
commit d20fe7bfdd
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace OpenSim.Framework.Communications.Clients
}
Hashtable responseData = (Hashtable)UserResp.Value;
if (responseData.ContainsKey("auth_session") && responseData["auth_session"].ToString() == "TRUE")
if (responseData != null && responseData.ContainsKey("auth_session") && responseData["auth_session"] != null && responseData["auth_session"].ToString() == "TRUE")
{
//System.Console.WriteLine("[Authorization]: userserver reported authorized session for user " + userID);
return true;