fixup! Separate showing IME logic and setting properties 76/314676/2
authorAkshay Kanagali <a.kanagali@partner.samsung.com>
Wed, 17 Jul 2024 07:41:53 +0000 (13:11 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 17 Jul 2024 08:31:28 +0000 (08:31 +0000)
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>
tizen_src/chromium_impl/ui/ozone/platform/efl/efl_input_method_context.cc

index 28f09607f0c3738cfeefdf52522323a15533de66..d20b67fbc3326fb5a13edcf48c73af545bb22743 100644 (file)
@@ -52,7 +52,8 @@ void EflInputMethodContext::UpdateFocus(
     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) {