summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-10 17:21:08 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-10 17:21:08 +0000
commit7786c8638a107953b779dbbedc39a4dfa85f5848 (patch)
treee36a6ec18ed337dc0cb1ef243eca3220ca0cfef6
parentbf2aad17ac9fba1da60c209f81b8659ee4649bd0 (diff)
CID-420
Checker: NULL_RETURNS Function: open_inventory_offer(const std::vector<LLUUID, std::allocator<LLUUID>> &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&) File: /indra/newview/llviewermessage.cpp
-rw-r--r--indra/newview/llviewermessage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index d9b5344dd4..29301e4d1c 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -867,6 +867,10 @@ void open_inventory_offer(const std::vector<LLUUID>& items, const std::string& f
}
LLInventoryItem* item = gInventory.getItem(item_id);
+ llassert(item);
+ if (!item) {
+ continue;
+ }
////////////////////////////////////////////////////////////////////////////////
// Special handling for various types.