greg-dove commented on issue #188:
URL: https://github.com/apache/royale-compiler/issues/188#issuecomment-864491959
@brianraymes just to be clear:
are you saying that the issue is caused by this code in the setter:
`warning = config.someProperty.length == 0;`
when either the value of 'config' ('this._config') or
(this._config.someProperty) is null ?
Did this same code work in Flex?
Otherwise, my first inclination would be to code the setter with null
safety, because if you were to set it with null values via regular actionscript
it would also error (null value or null value.someProperty).
`warning = value && value.someProperty ? value.someProperty.length == 0 :
false` (or whatever logic makes sense for warning to be true or false in
absence of value/ value.someProperty )
However, if you can confirm that this did work in the past as-is in Flex,
then I will try to figure it out.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]