diff options
author | Merov Linden <merov@lindenlab.com> | 2013-03-01 17:02:51 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-03-01 17:02:51 -0800 |
commit | e42e6bc68ae0b0f7a0bd2ca6f500ba783cc201a3 (patch) | |
tree | 02f06599170311582ffec19cd093445492a165fb /indra/llui | |
parent | 7b8822a24ae0a26228b975ebff3f22a0365ffd9e (diff) |
CHUI-807 : Fixed (attempt) : Defensive coding to prevent potential crash
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/lltabcontainer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index 91527c68f2..0c43a571b8 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -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); |