summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2017-05-22 03:29:01 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2017-05-22 03:29:01 +0300
commitf5e0a536c1e6de34b6bffc871d1fef1efd963fdf (patch)
treed2c85b789874d47588785f81ba3284d07f2a2d18 /indra/llui
parent4a90678cc7406b0c2c8dad5691cdc2555186931b (diff)
MAINT-7431 Fixed crash in LLAccordionCtrlTab::showAndFocusHeader()
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llaccordionctrltab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llui/llaccordionctrltab.cpp b/indra/llui/llaccordionctrltab.cpp
index f8ef5289db..eaf1284237 100644
--- a/indra/llui/llaccordionctrltab.cpp
+++ b/indra/llui/llaccordionctrltab.cpp
@@ -823,6 +823,11 @@ BOOL LLAccordionCtrlTab::handleKey(KEY key, MASK mask, BOOL called_from_parent)
void LLAccordionCtrlTab::showAndFocusHeader()
{
+ if (!mHeader)
+ {
+ return;
+ }
+
mHeader->setFocus(true);
mHeader->setSelected(mSelectionEnabled);