add NULL check 19/154219/2 accepted/tizen/4.0/unified/20171010.064146 submit/tizen_4.0/20171010.002332 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
authorSangjin Lee <lsj119@samsung.com>
Tue, 10 Oct 2017 00:14:53 +0000 (09:14 +0900)
committerSangjin Lee <lsj119@samsung.com>
Tue, 10 Oct 2017 00:17:50 +0000 (09:17 +0900)
Change-Id: Ide9a7a00371b4191f6e9dac7a47167460b52da2c

src/lib/compositor.c

index 4a24697a665abc7288da9999313a630335c230df..35c16a949d059ba52b8cb3f8d8221b9ad7af93fa 100644 (file)
@@ -84,6 +84,9 @@ _pepper_efl_compositor_get_socket_fd_from_server(pepper_efl_comp_t *comp)
           }
      }
 
+   if (!tec)
+     return -1;
+
    tizen_embedded_compositor_get_socket(tec);
    ecore_wl_sync();