fix(dropdown): check if group exists before checking if it's editing (#10157)

This commit is contained in:
André Costa
2026-05-22 08:15:18 +02:00
committed by GitHub
parent 807a815cb0
commit b48b348c8f
+2 -2
View File
@@ -779,8 +779,8 @@ static void lv_dropdown_event(const lv_obj_class_t * class_p, lv_event_t * e)
lv_dropdown_t * dropdown = (lv_dropdown_t *)obj;
if(code == LV_EVENT_FOCUSED) {
lv_group_t * g = lv_obj_get_group(obj);
bool editing = lv_group_get_editing(g);
lv_group_t * g = lv_obj_get_group(obj);
const bool editing = g && lv_group_get_editing(g);
lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_active());
/*Encoders need special handling*/