mirror of
https://github.com/kcozens/OpenSimProfile.git
synced 2026-08-14 09:02:00 +00:00
Fix a potential nullref on picks
git-svn-id: http://forge.opensimulator.org/svn/osprofile/trunk@18 19860011-0018-435d-96ae-4a7b0aaa3128
This commit is contained in:
@@ -227,12 +227,15 @@ namespace OpenSimProfile.Modules.OpenProfile
|
||||
|
||||
Dictionary<UUID, string> picks = new Dictionary<UUID, string>();
|
||||
|
||||
foreach (Object o in dataArray)
|
||||
{
|
||||
Hashtable d = (Hashtable)o;
|
||||
|
||||
picks[new UUID(d["pickid"].ToString())] = d["name"].ToString();
|
||||
}
|
||||
if (dataArray != null)
|
||||
{
|
||||
foreach (Object o in dataArray)
|
||||
{
|
||||
Hashtable d = (Hashtable)o;
|
||||
|
||||
picks[new UUID(d["pickid"].ToString())] = d["name"].ToString();
|
||||
}
|
||||
}
|
||||
|
||||
remoteClient.SendAvatarPicksReply(remoteClient.AgentId,
|
||||
picks);
|
||||
|
||||
Reference in New Issue
Block a user