Bug 191040

Summary: [Widget] Guard addListener/removeListener with checkWidget
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: bugday
Version: 1.0   
Target Milestone: 1.3 M5   
Hardware: PC   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2007-06-05 10:30:28 EDT
Just a reminder.
The various methods to add and remove typed listeners should be guarded with a call to checkWidget() as in SWT.
Comment 1 Ralf Sternberg CLA 2009-02-13 05:02:17 EST
In addtion to this, the missing null argument checks should also be added:

if( listener == null ) {
  error( SWT.ERROR_NULL_ARGUMENT );
}
Comment 2 Benjamin Muskalla CLA 2009-02-13 05:11:31 EST
See bug 243874
Comment 3 Ivan Furnadjiev CLA 2009-12-18 05:10:52 EST
I think that this if fixed. Rüdiger, any additional work here?
Comment 4 Rüdiger Herrmann CLA 2009-12-18 07:16:01 EST
(In reply to comment #3)
> I think that this if fixed. Rüdiger, any additional work here?
There are stiil some ungarded add/remove*Listener methods. E.g. Control#addControlListener
Comment 5 Rüdiger Herrmann CLA 2010-01-28 14:25:40 EST
Chagnes are in CVS HEAD