There's a chrome crash during launch due to missing
null check for ime_context_.
Change-Id: I6dd3df792369d1e16ff54294c12edcf8299c6e4c
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>
TextInputType old_type,
const TextInputClientAttributes& new_client_attributes,
TextInputClient::FocusReason reason) {
- im_context_->UpdateInputMethodState(new_client_attributes);
+ if (im_context_)
+ im_context_->UpdateInputMethodState(new_client_attributes);
if (old_type != TEXT_INPUT_TYPE_NONE &&
new_client_attributes.input_type == TEXT_INPUT_TYPE_NONE) {