1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(obj): avoid to init NULL obj

See #6541

Signed-off-by: Sunrisepeak <speakshen@163.com>
This commit is contained in:
SPeak 2024-07-22 00:02:30 +08:00 committed by Gabor Kiss-Vamosi
parent daa7fefb3a
commit 9e3ea81dde

View File

@ -102,6 +102,8 @@ lv_obj_t * lv_obj_class_create_obj(const lv_obj_class_t * class_p, lv_obj_t * pa
void lv_obj_class_init_obj(lv_obj_t * obj)
{
if(obj == NULL) return;
lv_obj_mark_layout_as_dirty(obj);
lv_obj_enable_style_refresh(false);