Closed ddkwork closed 4 months ago
fix code:
func (wb *WidgetBase) RunStylers() {
for _, s := range wb.FirstStylers {
if s == nil {
continue
}
s(&wb.Styles)
}
for _, s := range wb.Stylers {
if s == nil {
continue
}
s(&wb.Styles)
}
for _, s := range wb.FinalStylers {
if s == nil {
continue
}
s(&wb.Styles)
}
}
Or change the field FirstStylers []func(s styles.Style) of struct WidgetBase to FirstStylers []func(s styles.Style)error so that we know where the null pointer is coming from, and after half a day of debugging I still don't know where it's coming from! nil
This is a duplicate of #917, which I am currently working on fixing. I know the cause of this issue and have a plan for fixing it. You do not need to debug it.
Ok
Describe the bug
nil point
How to reproduce
see png
Example code
No response
Relevant output
Platform
Windows