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

Bug 328412

Summary: CaptionedControl problems
Product: z_Archived Reporter: Wolfgang Röckelein <mail>
Component: ERCPAssignee: ercp.eswt <ercp.eswt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Wolfgang Röckelein CLA 2010-10-21 16:53:20 EDT
CaptionedControl has an error in the focusOutListener which produces an NPE if the event is for a Shell/MobileShell. Code fix suggestion:
				while(c!=thisControl){
					if(c instanceof Shell){
						break;
					}else if(c.getParent() instanceof Shell){
						break;
					}else{
						c = c.getParent();
					}
				}

In the code exmaples in the comments "ConstraintedText" instead of "ConstrainedText" is used.