mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(btnmatrix): fix derefrencing NULL pointer
This commit is contained in:
parent
b62b4f5dce
commit
a24a9adfbe
@ -446,7 +446,7 @@ static void lv_btnmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e)
|
||||
else if(code == LV_EVENT_PRESSING) {
|
||||
lv_indev_t * indev = lv_indev_get_act();
|
||||
/*Ignore while scrolling*/
|
||||
if(lv_indev_get_scroll_obj(indev)) {
|
||||
if(indev && lv_indev_get_scroll_obj(indev)) {
|
||||
if(btnm->btn_id_sel != LV_BTNMATRIX_BTN_NONE) {
|
||||
invalidate_button_area(obj, btnm->btn_id_sel);
|
||||
btnm->btn_id_sel = LV_BTNMATRIX_BTN_NONE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user