Fix 'dereferenced after NULL' issues 35/54935/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 21 Dec 2015 01:56:11 +0000 (10:56 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 21 Dec 2015 01:56:11 +0000 (10:56 +0900)
Change-Id: I7f6e09e8c0f0a8c913c225d0c8a45ca0a3279210

scl/sclkeyfocushandler.cpp

index d648dbc..4a9917c 100644 (file)
@@ -467,7 +467,7 @@ CSCLKeyFocusHandler::process_navigation(SCLHighlightNavigationDirection directio
         sclboolean exclude_popup_covered_area = FALSE;
 
         if (!windows->is_base_window(windows->get_nth_window_in_Z_order_list(SCL_WINDOW_Z_TOP))) {
-            if (cache && scl_check_arrindex(window_context->inputmode, MAX_SCL_INPUT_MODE)) {
+            if (cache && window_context && scl_check_arrindex(window_context->inputmode, MAX_SCL_INPUT_MODE)) {
                 const SclLayout *cur_layout =
                     cache->get_cur_layout(windows->get_nth_window_in_Z_order_list(SCL_WINDOW_Z_TOP));
                 if (cur_layout) {