summaryrefslogtreecommitdiff
path: root/indra/newview/llmenucommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llmenucommands.cpp')
-rw-r--r--indra/newview/llmenucommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llmenucommands.cpp b/indra/newview/llmenucommands.cpp
index 80bc2ad861..f0bfbef565 100644
--- a/indra/newview/llmenucommands.cpp
+++ b/indra/newview/llmenucommands.cpp
@@ -84,8 +84,8 @@ void handle_mouselook(void*)
void handle_chat(void*)
{
// give focus to chatbar if it's open but not focused
- if (gSavedSettings.getBOOL("ChatVisible") && gFocusMgr.childHasKeyboardFocus(
- LLBottomTray::getInstance()->getChatBox()))
+ if (gBottomTray && gSavedSettings.getBOOL("ChatVisible") &&
+ gFocusMgr.childHasKeyboardFocus(gBottomTray->getChatBox()))
{
LLChatBar::stopChat();
}