diff options
author | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-03-23 21:33:09 +0200 |
---|---|---|
committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-03-23 21:33:09 +0200 |
commit | ae9e68f251033f8ed0b40163f778d8f4460634d3 (patch) | |
tree | 063714655fada75a72b5e1909c365c98c43445fc /indra | |
parent | 2768663081b27c39202f292ca53d98c381419e12 (diff) |
Fixed normal bug (EXT-6340) Crash when attempting to getChild<LLAccordionCtrlTab>("accordion_tab_name") and "accordion_tab_name" is not found.
- Added NULL pointer checks.
--HG--
branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/llaccordionctrltab.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/llui/llaccordionctrltab.cpp b/indra/llui/llaccordionctrltab.cpp index 1067c3f1d5..0247935a7c 100644 --- a/indra/llui/llaccordionctrltab.cpp +++ b/indra/llui/llaccordionctrltab.cpp @@ -465,10 +465,11 @@ void LLAccordionCtrlTab::setHeaderVisible(bool value) reshape(getRect().getWidth(), getRect().getHeight(), FALSE); }; -//vurtual +//virtual BOOL LLAccordionCtrlTab::postBuild() { - mHeader->setVisible(mHeaderVisible); + if(mHeader) + mHeader->setVisible(mHeaderVisible); static LLUICachedControl<S32> scrollbar_size ("UIScrollbarSize", 0); @@ -504,7 +505,8 @@ BOOL LLAccordionCtrlTab::postBuild() mScrollbar->setVisible(false); } - mContainerPanel->setVisible(mDisplayChildren); + if(mContainerPanel) + mContainerPanel->setVisible(mDisplayChildren); return LLUICtrl::postBuild(); } |