diff --git a/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs b/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs index cd9f2bfcff..a662abb867 100644 --- a/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs +++ b/OpenSim/Services/Connectors/Inventory/XInventoryConnector.cs @@ -158,7 +158,10 @@ namespace OpenSim.Services.Connectors public InventoryCollection GetFolderContent(UUID principalID, UUID folderID) { InventoryCollection inventory = new InventoryCollection(); - + inventory.Folders = new List(); + inventory.Items = new List(); + inventory.UserID = principalID; + try { Dictionary ret = MakeRequest("GETFOLDERCONTENT", @@ -172,11 +175,6 @@ namespace OpenSim.Services.Connectors if (ret.Count == 0) return null; - - inventory.Folders = new List(); - inventory.Items = new List(); - inventory.UserID = principalID; - Dictionary folders = (Dictionary)ret["FOLDERS"]; Dictionary items =