summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-11 12:58:06 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-11 12:58:06 +0000
commitd0183207eb28dc4764200c3ad4603a40ede0ce55 (patch)
treed8d8c7d52d659db5662803df0d07960121c00374 /indra/newview
parent0fba252b657b3ba1bb9d4d4372947247620250fb (diff)
CID-79
Checker: FORWARD_NULL Function: LLSidepanelItemInfo::refreshFromItem(LLViewerInventoryItem *) File: /indra/newview/llsidepaneliteminfo.cpp
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsidepaneliteminfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp
index 44348ba429..3d5120b18c 100644
--- a/indra/newview/llsidepaneliteminfo.cpp
+++ b/indra/newview/llsidepaneliteminfo.cpp
@@ -231,6 +231,9 @@ void LLSidepanelItemInfo::refreshFromItem(LLViewerInventoryItem* item)
// PERMISSIONS LOOKUP //
////////////////////////
+ llassert(item);
+ if (!item) return;
+
// do not enable the UI for incomplete items.
BOOL is_complete = item->isComplete();
const BOOL cannot_restrict_permissions = LLInventoryType::cannotRestrictPermissions(item->getInventoryType());