May fix mantis #7133

0.8.0.3
Diva Canto 2014-06-05 18:59:30 -07:00 committed by Justin Clark-Casey
parent 63a6998409
commit becb949a33
1 changed files with 13 additions and 8 deletions

View File

@ -1153,15 +1153,20 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
parameters = (OSDMap)Params;
OSDArray list = (OSDArray)parameters["result"];
foreach(OSD asset in list)
if (parameters.ContainsKey("result"))
{
OSDString assetId = (OSDString)asset;
OSDArray list = (OSDArray)parameters["result"];
Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString()));
foreach (OSD asset in list)
{
OSDString assetId = (OSDString)asset;
Scene.AssetService.Get(string.Format("{0}/{1}", assetServerURI, assetId.AsString()));
}
return true;
}
return true;
else
return false;
}
/// <summary>