summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpicks.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-03-23 13:58:41 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-03-23 13:58:41 +0000
commita375db6d756ceccae79eea17a0c261a361fce040 (patch)
tree742e354ef9933cc8db3822cf47aa404729207f0d /indra/newview/llpanelpicks.cpp
parent7b9dc9f8d72d9eb25e1dbc06f78f2fc81ac64ae0 (diff)
CID-451
Checker: FORWARD_NULL Function: LLPanelPicks::onPanelClassifiedSave(LLPanelClassifiedEdit *) File: /indra/newview/llpanelpicks.cpp
Diffstat (limited to 'indra/newview/llpanelpicks.cpp')
-rw-r--r--indra/newview/llpanelpicks.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp
index 0a7c39db46..4c254de063 100644
--- a/indra/newview/llpanelpicks.cpp
+++ b/indra/newview/llpanelpicks.cpp
@@ -827,7 +827,11 @@ void LLPanelPicks::onPanelClassifiedSave(LLPanelClassifiedEdit* panel)
else if(panel->isNewWithErrors())
{
LLClassifiedItem* c_item = dynamic_cast<LLClassifiedItem*>(mClassifiedsList->getSelectedItem());
- c_item->fillIn(panel);
+ llassert(c_item);
+ if (c_item)
+ {
+ c_item->fillIn(panel);
+ }
}
else
{