brianraymes commented on issue #185:
URL: https://github.com/apache/royale-compiler/issues/185#issuecomment-864335780
Here is an example:
```
private var _config:SomeTypedObject;
[Bindable]
public function get config():SomeTypedObject
{
return this._config;
}
public function set config(SomeTypedObject):void
{
this._config = value;
// Do something that causes an NPE. In this case, someProperty is null.
warning = config.someProperty.length == 0;
}
```
In this scenario, sub properties of config is bound to various fields.
Because of the NPE, none of the bindings for this field fire, even though the
value is set before the NPE. No error appears in the console or debugger. It's
as if it's caught and suppressed at runtime.
Now that I think about it, it may be about how the compiler converts generic
`[Bindable]` fields to dispatch the updated event. I'm betting in this case, if
I were to use my own event name and dispatch before the NPE, it would probably
work.
--
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]