From e2e048071dd99c64b66ad8c4067ea92698e1b6ec Mon Sep 17 00:00:00 2001 From: Maria Bialota Date: Wed, 22 Apr 2020 19:59:14 +0200 Subject: [PATCH] [atspi] _accessible_reading_material_get: Added Efl.Access.Selection interface check before calling Selection method Change-Id: I32852473f98445e7c2af177d74632ce077b45e0a --- src/lib/elementary/elm_atspi_bridge.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c index 08ae9da..f04e16b 100644 --- a/src/lib/elementary/elm_atspi_bridge.c +++ b/src/lib/elementary/elm_atspi_bridge.c @@ -1450,7 +1450,10 @@ _accessible_reading_material_get(const Eldbus_Service_Interface *iface, const El eldbus_message_iter_basic_append(iter, 'u', atspi_role); /* parent - child count */ - selected_child_count = efl_access_selection_selected_children_count_get(parent); + if (efl_isa(parent, EFL_ACCESS_SELECTION_INTERFACE)) + { + selected_child_count = efl_access_selection_selected_children_count_get(parent); + } eldbus_message_iter_basic_append(iter, 'i', selected_child_count); /* relation object - DESCRIBED_BY */ -- 2.7.4