| Summary: | [Compatibility] NPE caused by attempting to query editors that are no longer in the installation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | John Arthorne <john.arthorne> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | remy.suen | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 4.1 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
John Arthorne
Created attachment 179653 [details]
Complete log file from the session
I talked to John and there appears to be two different problems with the layout of his workspace we were trying to restore. 1. There were editors opened that were no longer present in the new installation that was run on the workspace. This is the cause behind the NPEs. 2. Trying to click around some existent editors but which were opened on resources that no longer existed were causing more NPEs to be thrown. I suspect this to be a side-effect of 1 but I will investigate to make sure. The workaround is to just Ctrl+Shift+W and close all the editors. Eclipse should continue functioning as normal. (In reply to comment #2) > 1. There were editors opened that were no longer present in the new > installation that was run on the workspace. This is the cause behind the NPEs. I only half-fixed this problem for non-restorable editors. The problem that John uncovered is for the cases where the non-restorable editor hasn't actually ever been clicked on. As parts are restored lazily, we haven't tried restoring them so the editor descriptors haven't been swapped out for the error one, causing NPEs to be thrown. Fixed in CVS HEAD. Asking IEditorReferences for their ids should no longer cause an NPE if the editor does not exist in the installation. |