Ticket #809 (closed defect: fixed)

Opened 19 months ago

Last modified 17 months ago

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

Changed 19 months ago by Jani Laakso

  • status changed from new to closed
  • resolution set to fixed

Fixed in [1706].

Changed 17 months ago by Jani Laakso

  • milestone changed from 4.1.0-rc to 4.0.3

Milestone 4.1.0-rc deleted

Changed 17 months ago by Jani Laakso

  • known_issue_title set to Select component NPE issue on init
  • known_issue_desc modified (diff)

Changed 17 months ago by Jani Laakso

  • known_issue_since set to 4.0.2
Note: See TracTickets for help on using tickets.