elm_access: fix a potentional error of null deref
Summary: this is a patch to fix a potentional error by null dereferencing. Reviewers: jsuya, kimcinoo, bu5hm4n Reviewed By: jsuya Subscribers: kimcinoo, bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12092
This commit is contained in:
parent
8265c6a98f
commit
efdd1b166e
|
@ -520,6 +520,7 @@ _access_highlight_next_get(Evas_Object *obj, Elm_Focus_Direction dir)
|
|||
if (ho)
|
||||
{
|
||||
Elm_Access_Info *info = _elm_access_info_get(ho);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(info, ret);
|
||||
if (type == ELM_ACCESS_ACTION_HIGHLIGHT_NEXT && info->next)
|
||||
target = info->next;
|
||||
else if (type == ELM_ACCESS_ACTION_HIGHLIGHT_PREV && info->prev)
|
||||
|
|
Loading…
Reference in New Issue