-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
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.
Originally posted by @brianraymes in #185 (comment)
Metadata
Metadata
Assignees
Labels
No labels