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
parent
70f85af75b
commit
f49c850269
|
@ -301,6 +301,7 @@ namespace OpenSim.Capabilities.Handlers
|
|||
InventoryItemBase linkedItem
|
||||
= m_InventoryService.GetItem(new InventoryItemBase(link.AssetID));
|
||||
|
||||
if (linkedItem != null)
|
||||
itemsToReturn.Insert(0, linkedItem);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue