check if cdata is NULL 24/44524/2
authorBoram Park <boram1288.park@samsung.com>
Thu, 23 Jul 2015 03:34:06 +0000 (12:34 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 23 Jul 2015 03:39:58 +0000 (20:39 -0700)
Change-Id: Iff905872bf5c8d8dbd7450d4158aecfb2cb55b10

src/bin/e_comp_wl.c

index 77e459f0acbcf761a06e07b858b7caf60c2270e4..bd2545d2dbfd8b2277e41e6775ae1548f8932625 100644 (file)
@@ -1880,7 +1880,8 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    wl_resource_set_user_data(res, ep);
 
    E_Comp_Wl_Client_Data *cdata = e_pixmap_cdata_get(ep);
-   cdata->wl_surface = res;
+   if (cdata)
+     cdata->wl_surface = res;
 
    /* emit surface create signal */
    wl_signal_emit(&comp->wl_comp_data->signals.surface.create, res);