ecore_evas_wl: add NULL check 96/127896/2
authorBoram Park <boram1288.park@samsung.com>
Tue, 2 May 2017 07:42:31 +0000 (16:42 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 8 May 2017 05:45:43 +0000 (05:45 +0000)
Change-Id: Iad73216f709b311e0bbd549ce6e91cd85f3a0cb1

src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c

index 142b257..5c15b9a 100755 (executable)
@@ -69,6 +69,7 @@ _ecore_evas_wl_common_engine_rotation_get(Ecore_Evas *ee)
 #ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
         Evas_Engine_Info_Wayland_Shm *einfo;
         einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
+        if (!einfo) return 0;
         return einfo->info.rotation;
 #endif
      }
@@ -77,6 +78,7 @@ _ecore_evas_wl_common_engine_rotation_get(Ecore_Evas *ee)
 #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
         Evas_Engine_Info_Wayland_Egl *einfo;
         einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+        if (!einfo) return 0;
         return einfo->info.rotation;
 #endif
      }