Community
Participate
Working Groups
Caused by: java.lang.NullPointerException at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.isInArea(PartActivationHistory.java:136) at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.isInArea(PartActivationHistory.java:139) at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.isInArea(PartActivationHistory.java:139) at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.isInArea(PartActivationHistory.java:139) at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.getActivationCandidate(PartActivationHistory.java:193) at org.eclipse.e4.ui.internal.workbench.PartActivationHistory.getNextActivationCandidate(PartActivationHistory.java:235) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:897) at org.eclipse.ui.internal.WorkbenchPage.hidePart(WorkbenchPage.java:991) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:891) at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1047) at org.eclipse.ui.internal.CloseEditorHandler.execute(CloseEditorHandler.java:47) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
Created attachment 181012 [details] EPartService patch v1 Changes the code in PartActivationHistory to consider the fact that getParent() returns null for detached windows.
(In reply to comment #1) > Created an attachment (id=181012) [details] > EPartService patch v1 Fix delivered to HEAD. Will need some additional changes and tests to consider MAreas that are contained within detached windows.
Created attachment 181013 [details] EPartService patch v2 Fix and tests for areas within detached windows. Technically speaking, this wasn't actually a problem but I've taken the time to write some tests and also clean up some of the code in PartActivationHistory.
(In reply to comment #3) > Created an attachment (id=181013) [details] > EPartService patch v2 Fix delivered to CVS HEAD.
Verified on Windows XP with I20101025-1602.