summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-11 13:04:38 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-11 13:04:38 +0000
commite7e414e8d2a768d788a6115aa27986844b3426a5 (patch)
tree60a98d389795a2af7e0103776244f58d982ec390 /indra
parenta94ae7766e3ec946539556dc2442353da526ea20 (diff)
CID-84
Checker: FORWARD_NULL Function: LLPanelPicks::onPanelClassifiedClose(LLPanelClassifiedInfo *) File: /indra/newview/llpanelpicks.cpp
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelpicks.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp
index ada65c98a4..8eb0b69491 100644
--- a/indra/newview/llpanelpicks.cpp
+++ b/indra/newview/llpanelpicks.cpp
@@ -843,10 +843,13 @@ void LLPanelPicks::onPanelClassifiedClose(LLPanelClassifiedInfo* panel)
{
LLClassifiedItem* c_item = dynamic_cast<LLClassifiedItem*>(
mClassifiedsList->getItemByValue(values[n]));
-
- c_item->setClassifiedName(panel->getClassifiedName());
- c_item->setDescription(panel->getDescription());
- c_item->setSnapshotId(panel->getSnapshotId());
+ llassert(c_item);
+ if (c_item)
+ {
+ c_item->setClassifiedName(panel->getClassifiedName());
+ c_item->setDescription(panel->getDescription());
+ c_item->setSnapshotId(panel->getSnapshotId());
+ }
}
}
}