Skip to content

Commit

Permalink
lv_event_send_func: obj can be NULL so prevents false positive assert
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Dec 30, 2019
1 parent 40ed2b9 commit f8f308a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lv_core/lv_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,9 @@ lv_res_t lv_event_send(lv_obj_t * obj, lv_event_t event, const void * data)
*/
lv_res_t lv_event_send_func(lv_event_cb_t event_xcb, lv_obj_t * obj, lv_event_t event, const void * data)
{
LV_ASSERT_OBJ(obj, LV_OBJX_NAME);
if(obj != NULL) {
LV_ASSERT_OBJ(obj, LV_OBJX_NAME);
}

/* Build a simple linked list from the objects used in the events
* It's important to know if an this object was deleted by a nested event
Expand Down

0 comments on commit f8f308a

Please sign in to comment.