From a375db6d756ceccae79eea17a0c261a361fce040 Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Tue, 23 Mar 2010 13:58:41 +0000 Subject: CID-451 Checker: FORWARD_NULL Function: LLPanelPicks::onPanelClassifiedSave(LLPanelClassifiedEdit *) File: /indra/newview/llpanelpicks.cpp --- indra/newview/llpanelpicks.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra/newview/llpanelpicks.cpp') 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(mClassifiedsList->getSelectedItem()); - c_item->fillIn(panel); + llassert(c_item); + if (c_item) + { + c_item->fillIn(panel); + } } else { -- cgit v1.2.3 From af77b7713444b9df58f451bdb1f30bdd4754fcbf Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Tue, 23 Mar 2010 14:02:41 +0000 Subject: CID-450 Checker: FORWARD_NULL Function: LLPanelPicks::onPanelClassifiedEdit() File: /indra/newview/llpanelpicks.cpp --- indra/newview/llpanelpicks.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview/llpanelpicks.cpp') diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp index 4c254de063..6f920cf4b9 100644 --- a/indra/newview/llpanelpicks.cpp +++ b/indra/newview/llpanelpicks.cpp @@ -974,6 +974,11 @@ void LLPanelPicks::onPanelClassifiedEdit() } LLClassifiedItem* c_item = dynamic_cast(mClassifiedsList->getSelectedItem()); + llassert(c_item); + if (!c_item) + { + return; + } LLSD params; params["classified_id"] = c_item->getClassifiedId(); -- cgit v1.2.3