@embeddedt@kisvegabor
Not sure if this problem can be avoided by code but if it can’t I think it should be declared in the documentation.
what do you think?
For v7, we could add a condition somewhere in the style code to prevent dereferencing a null style list, but the operation will still be a no-op, which isn’t really any better and could be even harder to debug.
The issue is that the button matrix which the styles are stored on doesn’t get created until lv_msgbox_add_btns is called. My guess is that this was implemented as a memory-saving measure for the case where a message box is created without buttons.
In v8 it looks like the button matrix is always created so this won’t be an issue.