summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-11 14:32:55 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-11 14:32:55 +0000
commit1b8a7fdeaab78216baad1f916e9788c0b90287b3 (patch)
tree49c9ccc7ddbb49de58fc7bcb072a6fb0fa618213 /indra/newview
parent10e7b598fa1d53da0454f87ad72d0b68a1b32a81 (diff)
CID-146
Checker: NULL_RETURNS Function: LLNotificationChannelPanel::onClickNotification(void *) File: /indra/newview/llfloaternotificationsconsole.cpp
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaternotificationsconsole.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llfloaternotificationsconsole.cpp b/indra/newview/llfloaternotificationsconsole.cpp
index 8b110f5846..94b5ebba00 100644
--- a/indra/newview/llfloaternotificationsconsole.cpp
+++ b/indra/newview/llfloaternotificationsconsole.cpp
@@ -112,10 +112,15 @@ void LLNotificationChannelPanel::onClickNotification(void* user_data)
{
LLNotificationChannelPanel* self = (LLNotificationChannelPanel*)user_data;
if (!self) return;
- void* data = self->getChild<LLScrollListCtrl>("notifications_list")->getFirstSelected()->getUserdata();
- if (data)
+ LLScrollListItem* firstselected = self->getChild<LLScrollListCtrl>("notifications_list")->getFirstSelected();
+ llassert(firstselected);
+ if (firstselected)
{
- gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE);
+ void* data = firstselected->getUserdata();
+ if (data)
+ {
+ gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE);
+ }
}
}