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:
Melanie Thielker
2008-08-27 00:40:36 +00:00
parent 8462c8c497
commit 670719cb76
2 changed files with 29 additions and 10 deletions

View File

@@ -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);