Skip to content
Snippets Groups Projects
Commit ac7539bd authored by Tofu Linden's avatar Tofu Linden
Browse files

CID-437

Checker: REVERSE_INULL
Function: RecoveredItemLinkCB::fire(const LLUUID &)
File: /indra/newview/llappearancemgr.cpp
parent bc5be41b
No related branches found
No related tags found
No related merge requests found
...@@ -528,22 +528,29 @@ class RecoveredItemLinkCB: public LLInventoryCallback ...@@ -528,22 +528,29 @@ class RecoveredItemLinkCB: public LLInventoryCallback
LLViewerInventoryItem *item = gInventory.getItem(item_id); LLViewerInventoryItem *item = gInventory.getItem(item_id);
LLViewerInventoryItem *linked_item = item ? item->getLinkedItem() : NULL; LLViewerInventoryItem *linked_item = item ? item->getLinkedItem() : NULL;
gInventory.addChangedMask(LLInventoryObserver::LABEL, linked_item->getUUID()); if (linked_item)
if (item && linked_item)
{ {
LLFoundData found(linked_item->getUUID(), gInventory.addChangedMask(LLInventoryObserver::LABEL, linked_item->getUUID());
linked_item->getAssetUUID(),
linked_item->getName(), if (item)
linked_item->getType(), {
linked_item->isWearableType() ? linked_item->getWearableType() : WT_INVALID LLFoundData found(linked_item->getUUID(),
); linked_item->getAssetUUID(),
found.mWearable = mWearable; linked_item->getName(),
mHolder->mFoundList.push_front(found); linked_item->getType(),
linked_item->isWearableType() ? linked_item->getWearableType() : WT_INVALID
);
found.mWearable = mWearable;
mHolder->mFoundList.push_front(found);
}
else
{
llwarns << "inventory item not found for recovered wearable" << llendl;
}
} }
else else
{ {
llwarns << "inventory item or link not found for recovered wearable" << llendl; llwarns << "inventory link not found for recovered wearable" << llendl;
} }
} }
private: private:
......
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