summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:34:06 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:34:06 +0000
commitcf119b522f0a5f5b8b28bc56ea1611d342fd1283 (patch)
treed2d23d4674eb1a065eb08d87b0e97d52860b5222
parenta2c6c09c5370b4068c91864e808fa8f970139ada (diff)
CID-137
Checker: NULL_RETURNS Function: LLPanelMainInventory::onCustomAction(const LLSD &) File: /indra/newview/llpanelmaininventory.cpp
-rw-r--r--indra/newview/llpanelmaininventory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 1895993a8e..2d3401966b 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -1003,7 +1003,10 @@ void LLPanelMainInventory::onCustomAction(const LLSD& userdata)
}
const LLUUID item_id = current_item->getListener()->getUUID();
LLViewerInventoryItem *item = gInventory.getItem(item_id);
- item->regenerateLink();
+ if (item)
+ {
+ item->regenerateLink();
+ }
active_panel->setSelection(item_id, TAKE_FOCUS_NO);
}
if (command_name == "find_original")