summaryrefslogtreecommitdiff
path: root/indra/llui/llaccordionctrltab.cpp
diff options
context:
space:
mode:
authorSergei Litovchuk <slitovchuk@productengine.com>2010-03-23 21:33:09 +0200
committerSergei Litovchuk <slitovchuk@productengine.com>2010-03-23 21:33:09 +0200
commitae9e68f251033f8ed0b40163f778d8f4460634d3 (patch)
tree063714655fada75a72b5e1909c365c98c43445fc /indra/llui/llaccordionctrltab.cpp
parent2768663081b27c39202f292ca53d98c381419e12 (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/llui/llaccordionctrltab.cpp')
-rw-r--r--indra/llui/llaccordionctrltab.cpp8
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();
}