From: Jihoon Kim Date: Wed, 7 Jan 2015 12:34:12 +0000 (+0900) Subject: Fix isf-panel-efl crash issue X-Git-Tag: submit/tizen/20150128.083920~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e65b65376e628e87f8e0c62a6a2291dabbab94e;p=platform%2Fcore%2Fuifw%2Fisf.git Fix isf-panel-efl crash issue Change-Id: Ic5bdc04e30b88f5f4a2e01468141303705c735c2 --- diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index 06f136a..98086ad 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -5524,9 +5524,13 @@ static void display_language_changed_cb (keynode_t *key, void* data) update_ise_locale (); String default_uuid = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_DEFAULT_ISE_UUID), _initial_ise_uuid); - String default_name = _names[get_ise_index (default_uuid)]; - _panel_agent->set_current_ise_name (default_name); - _config->reload (); + unsigned int ise_idx = get_ise_index (default_uuid); + + if (ise_idx < _names.size ()) { + String default_name = _names[ise_idx]; + _panel_agent->set_current_ise_name (default_name); + _config->reload (); + } #ifdef HAVE_MINICONTROL if (input_detect_minictrl.get_visibility ())