Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324230 - NPE thrown when unrendering an MPartSashContainer that contains unrendered children
Summary: NPE thrown when unrendering an MPartSashContainer that contains unrendered ch...
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 325343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-01 13:39 EDT by Remy Suen CLA
Modified: 2010-09-15 08:29 EDT (History)
1 user (show)

See Also:


Attachments
PartRenderingEngine tests patch v1 (1.82 KB, patch)
2010-09-01 13:42 EDT, Remy Suen CLA
no flags Details | Diff
Remove the code to remove the 'resizeListener' (894 bytes, patch)
2010-09-14 14:03 EDT, Eric Moffatt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***