diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 11:55:34 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-27 11:55:34 -0800 |
commit | 3acf25d5fc7d3efcc2e13096ff781897ebf31346 (patch) | |
tree | 960db705f24dc68a519ef73c343c3aba21f055fd /indra/llui/lltabcontainer.cpp | |
parent | 4cad6333ab447713e96fb14a278e529f5bc4f2a1 (diff) |
CID-416
Checker: NULL_RETURNS
Function: LLTabContainer::onTabBtn(const LLSD &, LLPanel *)
File: /indra/llui/lltabcontainer.cpp
Diffstat (limited to 'indra/llui/lltabcontainer.cpp')
-rw-r--r-- | indra/llui/lltabcontainer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index dcb3542e18..6be76605fd 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -1590,7 +1590,10 @@ void LLTabContainer::onTabBtn( const LLSD& data, LLPanel* panel ) LLTabTuple* tuple = getTabByPanel(panel); selectTabPanel( panel ); - tuple->mTabPanel->setFocus(TRUE); + if (tuple) + { + tuple->mTabPanel->setFocus(TRUE); + } } void LLTabContainer::onNextBtn( const LLSD& data ) |