From 3a38bd8854a93bb23308e4f09b02fd7b0aa672ce Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 25 Apr 2011 08:53:48 -0700 Subject: Addresses mantis #5449 -- crashing exception in SendInventoryFolderDetails. --- OpenSim/Services/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 cd9f2bf..a662abb 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 = -- cgit v1.1