From: InHong Han Date: Mon, 20 Jan 2020 09:00:56 +0000 (+0900) Subject: Fixed defects detected by static analysis tool X-Git-Tag: submit/tizen_5.5/20200120.091034~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c8f18561686a45e7a948d79068f1ea75d31cd8c;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Fixed defects detected by static analysis tool Change-Id: I69726a6b58960a1204d5057362757e162aa27881 --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index e8063a5..5e00c97 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -190,16 +190,17 @@ static void slot_ise_show(const scim::HelperAgent *agent, int ic, char *buf, siz ui->process_keyboard_ui_state_change(KEYBOARD_UI_STATE_WILL_SHOW); } callback->on_ise_show(ic, impl->get_screen_rotation_degree(), ise_context); - SclSize portrait; - SclSize landscape; - ui->get_keyboard_size(&portrait, &landscape); - /* If the ime_set_size() API is not called and IME is shown, the app can not receive the keyboard window's geometry from ISF. - And the ime_set_size() API is not called unless the IME size changes. - */ - ui->update_keyboard_geometry(portrait, landscape); if (ui) { + SclSize portrait; + SclSize landscape; + ui->get_keyboard_size(&portrait, &landscape); + /* If the ime_set_size() API is not called and IME is shown, the app can not receive the keyboard window's geometry from ISF. + And the ime_set_size() API is not called unless the IME size changes. + */ + ui->update_keyboard_geometry(portrait, landscape); ui->process_keyboard_ui_state_change(KEYBOARD_UI_STATE_DID_SHOW); - } + } else + LOGW("Failed to get core UI"); #ifdef WEBSOCKET g_websocket.on_set_layout(ise_context.layout);