fix(dropdown): check for NULL in dropdown label before dereferencing (#8543)

This commit is contained in:
moon044
2025-07-25 01:23:36 +09:00
committed by GitHub
parent 2072d87b37
commit 58d018132b
+1
View File
@@ -1030,6 +1030,7 @@ static void draw_box(lv_obj_t * dropdown_obj, lv_layer_t * layer, uint32_t id, l
/*Draw the selected*/
lv_obj_t * label = get_label(dropdown_obj);
LV_ASSERT_NULL(label);
lv_area_t rect_area;
rect_area.y1 = label->coords.y1;
rect_area.y1 += id * (font_h + line_space);