Should return value be checked in function lv_obj_del and lv_refr_obj_and_children?

In file lv_core\lv_obj.c on line 475, lv_obj_get_disp is called and I wonder if the return value can be NULL here. Also, in file lv_core\lv_refr.c on line 456, should return value be checked when lv_disp_get_scr_act is called?

I guess these two return values cannot be NULL so there is no need to check them, but I am not sure.

It’s not logical to have an object without a display, so I don’t think this can ever happen.

I’m not 100% sure about this one, but I don’t think the refreshing logic is run if there is no active screen on the display.

1 Like

Ok! Thank you very much!