diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-07-06 11:23:22 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-07-06 11:23:22 +0100 |
commit | a1bbba2be64daf332bdf511129b1ec4f2bea1540 (patch) | |
tree | 7bbb92903553b77c54b7b3c1b36a034edcc3df87 /indra | |
parent | e04df15bf1280d29f998a18bbb326f4bfa991f69 (diff) |
CID-485
Checker: NULL_RETURNS
Function: LLAgentWearables::setWearableName(const LLUUID &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
File: /indra/newview/llagentwearables.cpp
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llagentwearables.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index 266aaaff4a..efa5eca217 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -547,6 +547,7 @@ void LLAgentWearables::setWearableName(const LLUUID& item_id, const std::string& { LLWearable* old_wearable = getWearable((LLWearableType::EType)i,j); llassert(old_wearable); + if (!old_wearable) continue; std::string old_name = old_wearable->getName(); old_wearable->setName(new_name); |