1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

indev: minor fix to avide potential referring of NULL pointer

This commit is contained in:
Gabor Kiss-Vamosi 2020-01-17 13:43:26 +01:00
parent 6640585827
commit 1dda6f5222

View File

@ -1327,7 +1327,8 @@ static void indev_gesture(lv_indev_proc_t * proc)
lv_obj_t * gesture_obj = proc->types.pointer.act_obj;
/*If gesture parent is active check recursively the drag_parent attribute*/
while (lv_obj_get_gesture_parent(gesture_obj) != false && gesture_obj != NULL) {
while (gesture_obj) {
if(lv_obj_get_gesture_parent(gesture_obj) == false) break;
gesture_obj = lv_obj_get_parent(gesture_obj);
}