example: add non-null judgment to lv_example_obj_2
@@ -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);
