summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-27 11:55:34 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-27 11:55:34 -0800
commit3acf25d5fc7d3efcc2e13096ff781897ebf31346 (patch)
tree960db705f24dc68a519ef73c343c3aba21f055fd
parent4cad6333ab447713e96fb14a278e529f5bc4f2a1 (diff)
CID-416
Checker: NULL_RETURNS Function: LLTabContainer::onTabBtn(const LLSD &, LLPanel *) File: /indra/llui/lltabcontainer.cpp
-rw-r--r--indra/llui/lltabcontainer.cpp5
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 )