elm: Added null check for top and bottom btn before sending access name changed signal.
authorPrasoon Singh <prasoon.16@samsung.com>
Mon, 27 Nov 2017 10:04:44 +0000 (15:34 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 09:24:04 +0000 (18:24 +0900)
@tizen_feature

orignal commit: 98e0847d3d06676ef5ca9cedb00881435c75a196

Change-Id: I9dfad32d0a70d463474b484b78905e1d812b563b

src/lib/elementary/elm_flipselector.c

index 42aceab..c4bae2f 100644 (file)
@@ -252,11 +252,17 @@ _on_item_changed(Elm_Flipselector_Data *sd)
    //TIZEN ONLY(2015090): expose flipselector top/bottom buttons for accessibility tree
    if (_elm_config->atspi_mode)
      {
-       elm_access_info_set(sd->access_top_button, ELM_ACCESS_INFO, (char *)item->label);
-       efl_access_name_changed_signal_emit(sd->access_top_button);
-
-       elm_access_info_set(sd->access_bottom_button, ELM_ACCESS_INFO, (char *)item->label);
-       efl_access_name_changed_signal_emit(sd->access_bottom_button);
+       if (sd->access_top_button)
+         {
+            elm_access_info_set(sd->access_top_button, ELM_ACCESS_INFO, (char *)item->label);
+            efl_access_name_changed_signal_emit(sd->access_top_button);
+         }
+
+       if (sd->access_bottom_button)
+         {
+            elm_access_info_set(sd->access_bottom_button, ELM_ACCESS_INFO, (char *)item->label);
+            efl_access_name_changed_signal_emit(sd->access_bottom_button);
+         }
      }
    //
 }