mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Addresses mantis #5449 -- crashing exception in SendInventoryFolderDetails.
This commit is contained in:
@@ -158,7 +158,10 @@ namespace OpenSim.Services.Connectors
|
|||||||
public InventoryCollection GetFolderContent(UUID principalID, UUID folderID)
|
public InventoryCollection GetFolderContent(UUID principalID, UUID folderID)
|
||||||
{
|
{
|
||||||
InventoryCollection inventory = new InventoryCollection();
|
InventoryCollection inventory = new InventoryCollection();
|
||||||
|
inventory.Folders = new List<InventoryFolderBase>();
|
||||||
|
inventory.Items = new List<InventoryItemBase>();
|
||||||
|
inventory.UserID = principalID;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Dictionary<string,object> ret = MakeRequest("GETFOLDERCONTENT",
|
Dictionary<string,object> ret = MakeRequest("GETFOLDERCONTENT",
|
||||||
@@ -172,11 +175,6 @@ namespace OpenSim.Services.Connectors
|
|||||||
if (ret.Count == 0)
|
if (ret.Count == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|
||||||
inventory.Folders = new List<InventoryFolderBase>();
|
|
||||||
inventory.Items = new List<InventoryItemBase>();
|
|
||||||
inventory.UserID = principalID;
|
|
||||||
|
|
||||||
Dictionary<string,object> folders =
|
Dictionary<string,object> folders =
|
||||||
(Dictionary<string,object>)ret["FOLDERS"];
|
(Dictionary<string,object>)ret["FOLDERS"];
|
||||||
Dictionary<string,object> items =
|
Dictionary<string,object> items =
|
||||||
|
|||||||
Reference in New Issue
Block a user