don't throw a null reference if an inventory link target doesn't exist when we're inspecting in order to send the required inventory folders
parent
467d7060ca
commit
784f70f704
|
@ -1404,6 +1404,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (item.AssetType == (int)AssetType.Link)
|
||||
{
|
||||
InventoryItemBase linkedItem = InventoryService.GetItem(new InventoryItemBase(item.AssetID));
|
||||
|
||||
// Take care of genuinely broken links where the target doesn't exist
|
||||
if (linkedItem != null)
|
||||
linkedItemFolderIdsToSend.Add(linkedItem.Folder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue