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

Bug 243874

Summary: [Events] add*Listener throws wrong exception
Product: [RT] RAP Reporter: Benjamin Muskalla <b.muskalla>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 1.2   
Target Milestone: 1.3 M3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
Proposed patch ruediger.herrmann: iplog+

Description Benjamin Muskalla CLA 2008-08-12 09:05:44 EDT
As JavaDoc states we should throw an IAE instead of an NPE in the case the listener is null.
This applies to all addListener methods at the moment.
Comment 1 Jordan Yakovchev CLA 2009-09-30 03:28:48 EDT
Created attachment 148391 [details]
Proposed patch
Comment 2 Jordan Yakovchev CLA 2009-09-30 09:26:51 EDT
Created attachment 148421 [details]
Proposed patch
Comment 3 RĂ¼diger Herrmann CLA 2009-10-05 06:06:54 EDT
Fixed in CVS HEAD