fix(color): bluetooth setup menu crash when discovering devices (#6079)

This commit is contained in:
philmoz
2025-04-12 18:35:09 +10:00
committed by GitHub
parent 071a6ba805
commit 9afa0c2a3a
+2
View File
@@ -219,6 +219,8 @@ class MenuBody : public TableField
void onDrawBegin(uint16_t row, uint16_t col,
lv_obj_draw_part_dsc_t* dsc) override
{
if (lines.size() == 0) return;
lv_canvas_t* icon = (lv_canvas_t*)lines[row]->getIcon();
if (!icon) return;