summaryrefslogtreecommitdiff
path: root/indra/newview/llwearableitemslist.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-08-21 19:30:52 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-08-21 20:29:38 +0300
commit2a3fa6964507f133a599649efe58e350efc43fdf (patch)
treebe78b0d95583be14a79435eaf9507405405faa96 /indra/newview/llwearableitemslist.cpp
parent787b63f4c29f6ef56f355ec80084458a1bbcfb35 (diff)
#4591 Crash at LLWearableItemsList's ContextMenu
Diffstat (limited to 'indra/newview/llwearableitemslist.cpp')
-rw-r--r--indra/newview/llwearableitemslist.cpp7
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)
{