diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index c4b5aac50f..fab3978ec7 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs @@ -1152,16 +1152,21 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles } parameters = (OSDMap)Params; - - OSDArray list = (OSDArray)parameters["result"]; - - foreach(OSD asset in list) - { - OSDString assetId = (OSDString)asset; - Scene.AssetService.Get(string.Format("{0}/{1}",assetServerURI, assetId.AsString())); + if (parameters.ContainsKey("result")) + { + OSDArray list = (OSDArray)parameters["result"]; + + 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; } ///