Ticket #809 (closed defect: fixed)
Select: creating Select with lazyLoading throws NPE on Application.init
| Reported by: | Jani Laakso | Owned by: | Jani Laakso |
|---|---|---|---|
| Priority: | minor | Milestone: | 4.0.3 |
| Component: | undefined | Version: | 4.0.2 |
| Keywords: | Cc: | matti.tahvonen@… | |
| Known Issue description: | Select component with LazyLoading activated throws NullPointerException if created on Application.init. | ||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | 4.0.2 | Known Issue title: | Select component NPE issue on init |
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description
See #733 which fixed Window + Select interoperability issue, however it had minor regression.
Changeset [1515] had regression on cases where main window yet does not exists, e.g. this code throws NPE if lazyLoading is true:
public void init() {
Window main = new Window("Hello window");
Select select = new Select("Select");
// if lazyloading is true, NPE is thrown in Select.attach
select.setLazyLoading(true);
select.addItem("first");
select.addItem("second");
select.addItem("third");
main.addComponent(select);
setMainWindow(main);
main.addComponent(new Label("Hello World!"));
}
Change History
Note: See
TracTickets for help on using
tickets.
