diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-10 17:40:56 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-10 17:40:56 +0000 |
commit | 6bd628dc57389286090e4b48c919aa314a1ea278 (patch) | |
tree | ca61243476c8e4c13c4c212499ab9dac412e6d9c | |
parent | 8419c4ec8aac52214a1a21bb3c00f4dc60fc8b6b (diff) |
CID-93
Checker: FORWARD_NULL
Function: LLFloaterPreference::onBtnOK()
File: /indra/newview/llfloaterpreference.cpp
-rw-r--r-- | indra/newview/llfloaterpreference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 9d9fbacee3..03555d4c4e 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -602,7 +602,7 @@ void LLFloaterPreference::onBtnOK() if (hasFocus()) { LLUICtrl* cur_focus = dynamic_cast<LLUICtrl*>(gFocusMgr.getKeyboardFocus()); - if (cur_focus->acceptsTextInput()) + if (cur_focus && cur_focus->acceptsTextInput()) { cur_focus->onCommit(); } |