summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-10 17:19:38 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-10 17:19:38 +0000
commitbf2aad17ac9fba1da60c209f81b8659ee4649bd0 (patch)
treec06c929f82086380579b89f2ef9fa4526669c462 /indra
parent797823f600621c4c22b5a3c20bad3e48c1f3be1a (diff)
CID-421
Checker: NULL_RETURNS Function: LLPanelPlaces::showAddedLandmarkInfo(const std::vector<LLUUID, std::allocator<LLUUID>> &) File: /indra/newview/llpanelplaces.cpp
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelplaces.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpanelplaces.cpp b/indra/newview/llpanelplaces.cpp
index c0491cc00f..17a970cfcf 100644
--- a/indra/newview/llpanelplaces.cpp
+++ b/indra/newview/llpanelplaces.cpp
@@ -1015,7 +1015,8 @@ void LLPanelPlaces::showAddedLandmarkInfo(const std::vector<LLUUID>& items)
LLInventoryItem* item = gInventory.getItem(item_id);
- if (LLAssetType::AT_LANDMARK == item->getType())
+ llassert(item);
+ if (item && (LLAssetType::AT_LANDMARK == item->getType()) )
{
// Created landmark is passed to Places panel to allow its editing.
// If the panel is closed we don't reopen it until created landmark is loaded.