Mantis #7600. The warning message was not a symptom of a problem, it was just that the HG client was trying to fetch folders that aren't in the Suitcase, so that fails. This should make the warning message go away in that situation. (fetching those folders will still fail, because they aren't available over HG)
parent
f63e7ec46f
commit
51fccff235
|
@ -221,13 +221,15 @@ namespace OpenSim.Services.Connectors
|
|||
if (!CheckReturn(ret))
|
||||
return null;
|
||||
|
||||
Dictionary<string,object> folders =
|
||||
(Dictionary<string,object>)ret["FOLDERS"];
|
||||
Dictionary<string,object> items =
|
||||
(Dictionary<string,object>)ret["ITEMS"];
|
||||
Dictionary<string,object> folders = ret.ContainsKey("FOLDERS") ?
|
||||
(Dictionary<string,object>)ret["FOLDERS"] : null;
|
||||
Dictionary<string,object> items = ret.ContainsKey("ITEMS") ?
|
||||
(Dictionary<string, object>)ret["ITEMS"] : null;
|
||||
|
||||
if (folders != null)
|
||||
foreach (Object o in folders.Values) // getting the values directly, we don't care about the keys folder_i
|
||||
inventory.Folders.Add(BuildFolder((Dictionary<string, object>)o));
|
||||
if (items != null)
|
||||
foreach (Object o in items.Values) // getting the values directly, we don't care about the keys item_i
|
||||
inventory.Items.Add(BuildItem((Dictionary<string, object>)o));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue