Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Scenario:
public class A {
}
public class B extends A implements Bindable {
@BXML Foo foo;
@Override
public void initialize(...)
}
public class C extends B {
@BXML Bar bar;
@Override
public void initialize(...)
}
Now, in test.bxml, you have:
<C/>
You expect the following output:
"Foo
Bar"
And yet we only bind the object to class C, meaning you instead will get a NullPointerException trying to de-reference 'foo'.
We should bind to all classes that implement Bindable.