From f7d47bbb1fa1de65e1c6760ea27ea6781d60c018 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 25 Apr 2011 08:53:48 -0700 Subject: [PATCH] Addresses mantis #5449 -- crashing exception in SendInventoryFolderDetails. --- .../Connectors/Inventory/XInventoryConnector.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 =