BUG: setting panel color

I have several of these on a form:

panel : TWebPanel

When I try this in some code:

panel.Color := clWhite

I get an error:

myUnit:1137 Uncaught TypeError: Cannot read properties of null (reading 'SetColor')

Panel is not null, so I'm not sure what this is referring to.

Cannot reproduce

hmmmm .... how can I tell what it thinks is null ?



*** Sorry, it looks like Panel is null there. Not sure why ... mystery solved.

I guess the col# in the error message means something.

Panel must be null

Yup, I set it in the wrong place. :frowning: