diff options
author | Eli Linden <eli@lindenlab.com> | 2010-03-23 10:37:46 -0700 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-03-23 10:37:46 -0700 |
commit | 913ea3ea8f15b98dc5df042e1499bb18520f2c6f (patch) | |
tree | 672cccc900f0184b3b377f21ccdfb4e193a8d6f6 /indra/newview/llpanelpicks.cpp | |
parent | 0cad953a96371bb05ff8796e90798b636d1e37f3 (diff) | |
parent | 0b3099fbca36be1012ddaeaf1e6cd5673caa1aca (diff) |
Merge
Diffstat (limited to 'indra/newview/llpanelpicks.cpp')
-rw-r--r-- | indra/newview/llpanelpicks.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp index 0a7c39db46..6f920cf4b9 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 { @@ -970,6 +974,11 @@ void LLPanelPicks::onPanelClassifiedEdit() } LLClassifiedItem* c_item = dynamic_cast<LLClassifiedItem*>(mClassifiedsList->getSelectedItem()); + llassert(c_item); + if (!c_item) + { + return; + } LLSD params; params["classified_id"] = c_item->getClassifiedId(); |