CHUI-807 : Fixed (attempt) : Defensive coding to prevent potential crash

master
Merov Linden 2013-03-01 17:02:51 -08:00
parent 7b8822a24a
commit e42e6bc68a
1 changed files with 2 additions and 0 deletions

View File

@ -1483,6 +1483,8 @@ BOOL LLTabContainer::setTab(S32 which)
for(tuple_list_t::iterator iter = mTabList.begin(); iter != mTabList.end(); ++iter)
{
LLTabTuple* tuple = *iter;
if (!tuple)
continue;
BOOL is_selected = ( tuple == selected_tuple );
tuple->mButton->setUseEllipses(mUseTabEllipses);
tuple->mButton->setHAlign(mFontHalign);