| Summary: | [Workbench] NPE WorkbenchWindow.firePerspectiveChanged | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dani Megert <daniel_megert> |
| Component: | UI | Assignee: | Stefan Xenos <sxenos> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | cturner, Darin_Swanson, frederic_fusier, grant_gayed, Olivier_Thomann, sdavids |
| Version: | 3.0 | ||
| Target Milestone: | 3.1 M2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Dani Megert
Test Case: Perspective icon > context menu > Close All *** Bug 73412 has been marked as a duplicate of this bug. *** It is caused by the creation of the debug string in
WorkbenchWindow#firePerspectiveChanged
It will be supplied with a "null" IPerspectiveDescriptor because the perspective
has been closed concurrently.
A fix would be to check for null before invoking it:
line 948 in WorkbenchPage#closeEditors:
// Notify interested listeners after the close
IPerspectiveDescriptor descriptor = getPerspective();
if (descriptor != null)
window.firePerspectiveChanged(this, descriptor,
CHANGE_EDITOR_CLOSE);
this is also related to an NPE mentioned in bug 73715, we need to fix this for M2 Fixed in HEAD. *** Bug 72825 has been marked as a duplicate of this bug. *** *** Bug 73746 has been marked as a duplicate of this bug. *** *** Bug 73640 has been marked as a duplicate of this bug. *** *** Bug 74349 has been marked as a duplicate of this bug. *** I200409230800 verified on Windows XP, multimonitor |