mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Mantis #1903
Thank you, cmickeyb, for a patch that prevents the loss of folders received out of sequence, and the items within.
This commit is contained in:
@@ -440,7 +440,13 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
{
|
||||
if (userProfile.HasReceivedInventory)
|
||||
{
|
||||
InventoryItemBase item = userProfile.RootFolder.FindItem(itemID);
|
||||
InventoryItemBase item = null;
|
||||
if ( userProfile.RootFolder == null )
|
||||
m_log.ErrorFormat(
|
||||
"[AGENT INVENTORY]: User {0} {1} does not have a root folder.",
|
||||
remoteClient.Name, remoteClient.AgentId);
|
||||
else
|
||||
item = userProfile.RootFolder.FindItem(itemID);
|
||||
if (item != null)
|
||||
{
|
||||
remoteClient.SendInventoryItemDetails(ownerID, item);
|
||||
|
||||
Reference in New Issue
Block a user