Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 408101

Summary: [DropDown] Javascript error when disposing of DropDown
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: IncubatorAssignee: 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:

Description RĂ¼diger Herrmann CLA 2013-05-15 05:52:56 EDT
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();
    }
  } );
Comment 1 Tim Buschtoens CLA 2013-05-22 08:36:24 EDT
Fixed: commit d1310bd26472dbc60094f8cc9b2ebe6d570e5437