Addresses mantis #5449 -- crashing exception in SendInventoryFolderDetails.

0.7.1-dev
Diva Canto 2011-04-25 08:53:48 -07:00
parent 9afb2e3dba
commit f7d47bbb1f
1 changed files with 4 additions and 6 deletions

View File

@ -158,6 +158,9 @@ namespace OpenSim.Services.Connectors
public InventoryCollection GetFolderContent(UUID principalID, UUID folderID)
{
InventoryCollection inventory = new InventoryCollection();
inventory.Folders = new List<InventoryFolderBase>();
inventory.Items = new List<InventoryItemBase>();
inventory.UserID = principalID;
try
{
@ -172,11 +175,6 @@ namespace OpenSim.Services.Connectors
if (ret.Count == 0)
return null;
inventory.Folders = new List<InventoryFolderBase>();
inventory.Items = new List<InventoryItemBase>();
inventory.UserID = principalID;
Dictionary<string,object> folders =
(Dictionary<string,object>)ret["FOLDERS"];
Dictionary<string,object> items =