Skip to content
Snippets Groups Projects
Commit f83601c1 authored by Loren Shih's avatar Loren Shih
Browse files

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.
parent 7bbc5cde
No related branches found
No related tags found
No related merge requests found
...@@ -1182,7 +1182,7 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name, ...@@ -1182,7 +1182,7 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name,
} }
LLViewerInventoryItem* item = gInventory.getItem(getWearableItemID((EWearableType) type, j)); LLViewerInventoryItem* item = gInventory.getItem(getWearableItemID((EWearableType) type, j));
// BAP TODO if (!item) continue;
LLPointer<LLInventoryCallback> cb = NULL; LLPointer<LLInventoryCallback> cb = NULL;
link_inventory_item(gAgent.getID(), link_inventory_item(gAgent.getID(),
item->getUUID(), item->getUUID(),
...@@ -1214,7 +1214,6 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name, ...@@ -1214,7 +1214,6 @@ void LLAgentWearables::makeNewOutfitLinks(const std::string& new_folder_name,
LLInventoryItem* item = gInventory.getItem(item_id); LLInventoryItem* item = gInventory.getItem(item_id);
if (!item) continue; if (!item) continue;
// BAP link here
LLPointer<LLInventoryCallback> cb = NULL; LLPointer<LLInventoryCallback> cb = NULL;
link_inventory_item(gAgent.getID(), link_inventory_item(gAgent.getID(),
item->getUUID(), item->getUUID(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment