wl_input_method null check 72/38572/2
authorpsw <sungwook79.park@samsung.com>
Wed, 22 Apr 2015 07:53:28 +0000 (16:53 +0900)
committerpsw <sungwook79.park@samsung.com>
Wed, 22 Apr 2015 08:03:19 +0000 (17:03 +0900)
Change-Id: I8250a85806de1dbba88991629007f3e089ffb28f

ism/extras/efl_wsc/isf_wsc_efl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index cb65088..48cc4e5
@@ -709,6 +709,11 @@ _wsc_setup(struct weescim *wsc)
             wsc->seat = (wl_seat*)wl_registry_bind (registry, global->id, &wl_seat_interface, 1);
     }
 
+    if (wsc->im == NULL) {
+        fprintf(stderr, "Failed because wl_input_method is null\n");
+        return;
+    }
+
     /* Input method listener */
     ISF_LOG ("Adding wl_input_method listener");
     wl_input_method_add_listener (wsc->im, &wsc_im_listener, wsc);