diff options
| -rw-r--r-- | indra/newview/llwearableitemslist.cpp | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llwearableitemslist.cpp b/indra/newview/llwearableitemslist.cpp index 5fb22184c3..cc593fe7b4 100644 --- a/indra/newview/llwearableitemslist.cpp +++ b/indra/newview/llwearableitemslist.cpp @@ -994,8 +994,11 @@ void LLWearableItemsList::ContextMenu::updateItemsVisibility(LLContextMenu* menu          LLUUID linked_id = item->getLinkedUUID();          LLViewerInventoryItem* linked_item = gInventory.getItem(linked_id); -        can_favorite |= !linked_item->getIsFavorite(); -        can_unfavorite |= linked_item->getIsFavorite(); +        if (linked_item) +        { +            can_favorite |= !linked_item->getIsFavorite(); +            can_unfavorite |= linked_item->getIsFavorite(); +        }          if (is_worn)          {  | 
