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,7 +1404,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (item.AssetType == (int)AssetType.Link)
|
if (item.AssetType == (int)AssetType.Link)
|
||||||
{
|
{
|
||||||
InventoryItemBase linkedItem = InventoryService.GetItem(new InventoryItemBase(item.AssetID));
|
InventoryItemBase linkedItem = InventoryService.GetItem(new InventoryItemBase(item.AssetID));
|
||||||
linkedItemFolderIdsToSend.Add(linkedItem.Folder);
|
|
||||||
|
// Take care of genuinely broken links where the target doesn't exist
|
||||||
|
if (linkedItem != null)
|
||||||
|
linkedItemFolderIdsToSend.Add(linkedItem.Folder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue