Guarding the unpacking of the email field introduced by Robsmart. Most profiles don't have it. This may fix mantis #4134.

remotes/origin/0.6.7-post-fixes
Diva Canto 2009-09-12 09:30:14 -07:00
parent cfa0cbdffa
commit 40c3ac4aeb
1 changed files with 2 additions and 1 deletions

View File

@ -651,7 +651,8 @@ namespace OpenSim.Region.Communications.OGS1
UserProfileData userData = new UserProfileData(); UserProfileData userData = new UserProfileData();
userData.FirstName = (string)data["firstname"]; userData.FirstName = (string)data["firstname"];
userData.SurName = (string)data["lastname"]; userData.SurName = (string)data["lastname"];
userData.Email = (string)data["email"]; if (data["email"] != null)
userData.Email = (string)data["email"];
userData.ID = new UUID((string)data["uuid"]); userData.ID = new UUID((string)data["uuid"]);
userData.Created = Convert.ToInt32(data["profile_created"]); userData.Created = Convert.ToInt32(data["profile_created"]);
userData.UserInventoryURI = (string)data["server_inventory"]; userData.UserInventoryURI = (string)data["server_inventory"];