diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-11 00:50:36 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-11 18:15:25 +0300 |
| commit | 88314fdf1bd81b5caa6419620c6fe3186a49a9ec (patch) | |
| tree | d9a92ad5570a7920f6014790d38a4988f110258e | |
| parent | 31ba51b676efdd092463181c0637ba26ecc002b9 (diff) | |
#5915 A missed null check in give_inventory_cb
| -rw-r--r-- | indra/newview/llavataractions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index fb1426a235..c95e98982d 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -853,6 +853,13 @@ namespace action_give_inventory break; } LLViewerInventoryItem* inv_item = gInventory.getItem(*it); + if (!inv_item) + { + shared = false; + LL_WARNS() << "Failed to share an item " << *it + << ". Item was not found in inventory." << LL_ENDL; + continue; + } if (!inv_item->getPermissions().allowCopyBy(gAgentID)) { if (!noncopy_item_names.empty()) |
