evas: Fix crash (?) in evas events
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Jul 2016 10:53:13 +0000 (19:53 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 5 Jul 2016 10:53:13 +0000 (19:53 +0900)
Reported by Shuhrat Dehkanov on the ML.
See f0fd66ab818d212fa88faef316ac17625f1a2f5.

Note: I didn't have a crash myself.

src/lib/evas/canvas/evas_events.c

index 28725f3..6d4f24a 100644 (file)
@@ -998,6 +998,7 @@ _evas_event_object_list_in_get(Evas *eo_e, Eina_List *in,
                                const Eina_Inlist *list, Evas_Object *stop,
                                int x, int y, int *no_rep, Eina_Bool source)
 {
+   if (!list) return NULL;
    return _evas_event_object_list_raw_in_get(eo_e, in, list->last, stop, x, y,
                                              no_rep, source);
 }