OpenSimProfile/Modules/ProfileModule/OpenProfile.cs:

- Check if notes hash is null when notes data was requested by viewer.
  This fixes the notes profile tab in viewer.


git-svn-id: http://forge.opensimulator.org/svn/osprofile/trunk@72 19860011-0018-435d-96ae-4a7b0aaa3128
This commit is contained in:
kcozens
2010-10-07 19:30:52 +00:00
parent 1d201394b8
commit de7fc2a54b
@@ -454,6 +454,8 @@ namespace OpenSimProfile.Modules.OpenProfile
public void HandleAvatarNotesRequest(Object sender, string method, List<String> args)
{
string notes = "";
if (!(sender is IClientAPI))
return;
@@ -480,16 +482,13 @@ namespace OpenSimProfile.Modules.OpenProfile
{
Hashtable d = (Hashtable)dataArray[0];
remoteClient.SendAvatarNotesReply(
new UUID(d["targetid"].ToString()),
d["notes"].ToString());
}
else
{
remoteClient.SendAvatarNotesReply(
new UUID(ReqHash["uuid"].ToString()),
"");
if (d["notes"] != null)
notes = d["notes"].ToString();
}
remoteClient.SendAvatarNotesReply(
new UUID(ReqHash["uuid"].ToString()),
notes);
}
// Notes Update