summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-07-05 12:00:02 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-07-05 12:00:02 +0100
commit2888e446a723d6c477fa07fcc733dcc16e021fef (patch)
tree2fb71cad774690aa124fdee024a8ace0574c17af
parent014c2a508934e18c347b70d905c004955cd23613 (diff)
CID-496
Checker: FORWARD_NULL Function: LLFloaterVoiceEffect::refreshEffectList() File: /indra/newview/llfloatervoiceeffect.cpp
-rw-r--r--indra/newview/llfloatervoiceeffect.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llfloatervoiceeffect.cpp b/indra/newview/llfloatervoiceeffect.cpp
index ca1f142760..3ab061dbea 100644
--- a/indra/newview/llfloatervoiceeffect.cpp
+++ b/indra/newview/llfloatervoiceeffect.cpp
@@ -199,7 +199,12 @@ void LLFloaterVoiceEffect::refreshEffectList()
if(sl_item)
{
LLFontGL::StyleFlags style = is_template_only ? LLFontGL::NORMAL : LLFontGL::BOLD;
- dynamic_cast<LLScrollListText*>(sl_item->getColumn(0))->setFontStyle(style);
+ LLScrollListText slt = dynamic_cast<LLScrollListText*>(sl_item->getColumn(0));
+ llassert(slt);
+ if (slt)
+ {
+ slt->setFontStyle(style);
+ }
}
}
}