| Summary: | [DropDown] Javascript error when disposing of DropDown | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | RĂ¼diger Herrmann <ruediger.herrmann> |
| Component: | Incubator | Assignee: | Project Inbox <rap.incubator-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | h.napp, ruediger.herrmann, tbuschto |
| Version: | 2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
Fixed: commit d1310bd26472dbc60094f8cc9b2ebe6d570e5437 |
When a DropDown widget is disposed (through its assiociated widget), the following Javascript error occurs: Could not process server response: Error: Error: Operation "destroy" on target "r6" of type "DropDown" failed: Cannot call method 'removeEventListener' of null To reproduce, run this code and click the 'Dispose text widget' button final Text text = new Text(parent, SWT.BORDER); new DropDown(text); Button button = new Button( parent, SWT.PUSH); button.setText("Dispose text widget"); button.addListener(SWT.Selection, new Listener() { public void handleEvent(Event event) { text.dispose(); } } );