example: add non-null judgment to lv_example_obj_2 (#2799)

This commit is contained in:
guoweilkd
2021-11-12 18:00:48 +08:00
committed by GitHub
parent b279f63d6b
commit ab544696dc

View File

@@ -6,6 +6,8 @@ static void drag_event_handler(lv_event_t * e)
lv_obj_t * obj = lv_event_get_target(e);
lv_indev_t * indev = lv_indev_get_act();
if(indev == NULL) return;
lv_point_t vect;
lv_indev_get_vect(indev, &vect);