Skip to content

Commit 2a3fa69

Browse files
committed
#4591 Crash at LLWearableItemsList's ContextMenu
1 parent 787b63f commit 2a3fa69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

indra/newview/llwearableitemslist.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,11 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu
994994

995995
LLUUID linked_id = item->getLinkedUUID();
996996
LLViewerInventoryItem* linked_item = gInventory.getItem(linked_id);
997-
can_favorite |= !linked_item->getIsFavorite();
998-
can_unfavorite |= linked_item->getIsFavorite();
997+
if (linked_item)
998+
{
999+
can_favorite |= !linked_item->getIsFavorite();
1000+
can_unfavorite |= linked_item->getIsFavorite();
1001+
}
9991002

10001003
if (is_worn)
10011004
{

0 commit comments

Comments
 (0)