[elm_layout][ATSPI] modify null check of obj 06/106206/4
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 21 Dec 2016 04:22:43 +0000 (13:22 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 22 Dec 2016 02:46:26 +0000 (18:46 -0800)
   modify null check of obj in _elm_layout_elm_widget_atspi function.

Change-Id: I916e186388b78fbb870e4fc94d0d51f724e72a74

src/lib/elm_layout.c

index 1a53725effe28e5fd0fc64873b702f79b7522146..461df088290ca33b06ee413146f62c94a2e29e46 100644 (file)
@@ -1875,8 +1875,7 @@ elm_layout_mmap_get(Eo *obj, const Eina_File **file, const char **group)
 EOLIAN static void
 _elm_layout_elm_widget_atspi(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED, Eina_Bool is_atspi)
 {
-   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
-
+   EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
    evas_object_smart_callback_call(obj, SIG_ATSPI_SCREEN_READER_CHANGED, &is_atspi);
 }
 //