summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-08-12 19:53:45 +0000
committerLoren Shih <seraph@lindenlab.com>2009-08-12 19:53:45 +0000
commitf83601c180d3d30992cd3735e307da7bade64000 (patch)
tree62c9f62c080378f1c7c135cd1b859c2ee2c4939f /indra
parent7bbc5cdea6beb4e05c26d1472f789fe6fa536ee3 (diff)
For DEV-37866 : Crash when creating a new look b/c of non-existent attachments
Simple fix -- added NULL check to logic that processes attachments.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llagentwearables.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index e5e456acb8..4834b31bc7 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -1182,7 +1182,7 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name,
}
LLViewerInventoryItem* item = gInventory.getItem(getWearableItemID((EWearableType) type, j));
- // BAP TODO
+ if (!item) continue;
LLPointer<LLInventoryCallback> cb = NULL;
link_inventory_item(gAgent.getID(),
item->getUUID(),
@@ -1214,7 +1214,6 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name,
LLInventoryItem* item = gInventory.getItem(item_id);
if (!item) continue;
- // BAP link here
LLPointer<LLInventoryCallback> cb = NULL;
link_inventory_item(gAgent.getID(),
item->getUUID(),