aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1UserServices.cs24
1 files changed, 15 insertions, 9 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 8c47323..2c97fd7 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -89,20 +89,26 @@ namespace OpenSim.Region.Communications.OGS1
89 89
90 public AvatarAppearance ConvertXMLRPCDataToAvatarAppearance(Hashtable data) 90 public AvatarAppearance ConvertXMLRPCDataToAvatarAppearance(Hashtable data)
91 { 91 {
92 if (data.Contains("error_type")) 92 if (data != null)
93 { 93 {
94 m_log.Warn("[GRID]: " + 94 if (data.Contains("error_type"))
95 "Error sent by user server when trying to get user appearance: (" + 95 {
96 data["error_type"] + 96 m_log.Warn("[GRID]: " +
97 "): " + data["error_desc"]); 97 "Error sent by user server when trying to get user appearance: (" +
98 return null; 98 data["error_type"] +
99 "): " + data["error_desc"]);
100 return new AvatarAppearance();
101 }
102 else
103 {
104 return new AvatarAppearance(data);
105 }
99 } 106 }
100 else 107 else
101 { 108 {
102 return new AvatarAppearance(data); 109 m_log.Error("[GRID]: The avatar appearance is null, something bad happenend");
110 return new AvatarAppearance();
103 } 111 }
104
105 return null;
106 } 112 }
107 113
108 public List<AvatarPickerAvatar> ConvertXMLRPCDataToAvatarPickerList(LLUUID queryID, Hashtable data) 114 public List<AvatarPickerAvatar> ConvertXMLRPCDataToAvatarPickerList(LLUUID queryID, Hashtable data)