If a link points to a non-existing item in FetchInventory caps, then don't try to add it to the return data rather than suffering an exception later on

0.7.4.1
Justin Clark-Casey (justincc) 2012-06-29 00:11:44 +01:00
parent f202c36106
commit 0f6b7b6a41
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ namespace OpenSim.Capabilities.Handlers
InventoryItemBase linkedItem InventoryItemBase linkedItem
= m_InventoryService.GetItem(new InventoryItemBase(link.AssetID)); = m_InventoryService.GetItem(new InventoryItemBase(link.AssetID));
itemsToReturn.Insert(0, linkedItem); if (linkedItem != null)
itemsToReturn.Insert(0, linkedItem);
} }
} }
} }