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

Bug 324230

Summary: NPE thrown when unrendering an MPartSashContainer that contains unrendered children
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pwebster
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
PartRenderingEngine tests patch v1
none
Remove the code to remove the 'resizeListener' none

Description Remy Suen CLA 2010-09-01 13:39:33 EDT
java.lang.NullPointerException
	at org.eclipse.e4.ui.workbench.renderers.swt.SashRenderer.hideChild(SashRenderer.java:317)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:517)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:528)
Comment 1 Remy Suen CLA 2010-09-01 13:42:09 EDT
Created attachment 177990 [details]
PartRenderingEngine tests patch v1

Here's a test to reproduce the problem.
Comment 2 Remy Suen CLA 2010-09-07 10:33:15 EDT
To see the problem manifest in the 4.x SDK, just close the 'Package Explorer' in the 'Java' perspective so that your left stack disappears and then try to reset the perspective.
Comment 3 Eric Moffatt CLA 2010-09-14 14:03:14 EDT
Created attachment 178858 [details]
Remove the code to remove the 'resizeListener'


There's already a widget disposed handler where we add it that removes it...
Comment 4 Eric Moffatt CLA 2010-09-14 14:09:28 EDT
Committed in >20100914. Applied the patch (and the new test).
Comment 5 Paul Webster CLA 2010-09-15 08:29:33 EDT
*** Bug 325343 has been marked as a duplicate of this bug. ***