Catch exception triggered by incoming avatars using legacy profiles
parent
34d40e46a5
commit
75e4af9d39
|
@ -1317,7 +1317,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
|
||||||
Stream rstream = webResponse.GetResponseStream();
|
Stream rstream = webResponse.GetResponseStream();
|
||||||
|
|
||||||
OSDMap response = new OSDMap();
|
OSDMap response = new OSDMap();
|
||||||
response = (OSDMap)OSDParser.DeserializeJson(rstream);
|
try
|
||||||
|
{
|
||||||
|
response = (OSDMap)OSDParser.DeserializeJson(rstream);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
m_log.DebugFormat("[PROFILES]: JsonRpcRequest Error {0} - remote user with legacy profiles?", e.Message);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(response.ContainsKey("error"))
|
if(response.ContainsKey("error"))
|
||||||
{
|
{
|
||||||
data = response["error"];
|
data = response["error"];
|
||||||
|
|
Loading…
Reference in New Issue