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

Bug 395577

Summary: Failed to grant focus to part (NPE in @Focus Method)
Product: [Eclipse Project] Platform Reporter: Marco Descher <marco>
Component: RuntimeAssignee: platform-runtime-inbox <platform-runtime-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: wim.jongman
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Exception
none
4.2SR1 good
none
4.3 integration fail none

Description Marco Descher CLA 2012-12-03 03:13:05 EST
I created a sample application for an article to come up accessible on https://github.com/col-panic/central-icon-management

The code works flawlessly on Eclipse 4.2 SR1 with Java 7. Using the newest integration build (I20121127-0800), however, the code fails with the enclosed exception.

I can mitigate the NPE by adding if (tableViewer !=null) before the tableViewer, but the program still does not work correct. To visualize the problem take a look at the enclosed screenshots showing the good (4.2) and the bad (4.3) version of the program.

I could als re-enact the problem on Windows XP.
Comment 1 Marco Descher CLA 2012-12-03 03:13:27 EST
Created attachment 224207 [details]
Exception
Comment 2 Marco Descher CLA 2012-12-03 03:13:45 EST
Created attachment 224208 [details]
4.2SR1 good
Comment 3 Marco Descher CLA 2012-12-03 03:14:00 EST
Created attachment 224209 [details]
4.3 integration fail
Comment 4 Marco Descher CLA 2012-12-03 03:27:34 EST
Remark: A possibly related bug has been created in https://bugs.eclipse.org/bugs/show_bug.cgi?id=393326
Comment 5 Marco Descher CLA 2012-12-03 04:15:50 EST
Already documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=394327 and discussed in http://www.eclipse.org/forums/index.php/m/986775/ 

Proposed fix adding @Inject works, sorry for bothering.

*** This bug has been marked as a duplicate of bug 394327 ***
Comment 6 Wim Jongman CLA 2012-12-03 05:03:46 EST
(In reply to comment #5)
> Already documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=394327
> and discussed in http://www.eclipse.org/forums/index.php/m/986775/ 
> 
> Proposed fix adding @Inject works, sorry for bothering.
> 
> *** This bug has been marked as a duplicate of bug 394327 ***

Adding @inject will workaround this bug, but it will break your application again when the bug is fixed.

The bug should be fixed in I20121127-0800 if this is not the case then please reopen bug 394327