Evas_Object *window_object = get_evas_window_object(window);
Evas_Object *drawing_object = static_cast<Evas_Object*>(drawing);
- if (!drawing_object || !window_object)
+ if (!drawing_object || !window_object || !name)
return;
Evas_Object * access_object = elm_access_object_register(drawing_object, window_object);
if (!access_object)
return;
- if (name)
- elm_atspi_accessible_name_set(access_object, name);
-
+ elm_atspi_accessible_name_set(access_object, name);
elm_atspi_accessible_role_set(access_object, ELM_ATSPI_ROLE_PUSH_BUTTON);
elm_access_action_cb_set(access_object, ELM_ACCESS_ACTION_ACTIVATE, access_action, name);
}