| Summary: | [Preferences] NullPointerException when pressing ok in perspectives preferences, when all perspectives are closed | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jacek Pospychala <jacek.pospychala> | ||||
| Component: | UI | Assignee: | Oleg Besedin <ob1.eclipse> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Oleg Besedin <ob1.eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ob1.eclipse, remy.suen, steven | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jacek Pospychala
Similar to bug 293689 though the steps are different. Indeed, I just tried steps from bug 293689 and stack trace looks pretty much the same as in this bug. E.g. NPE happening in PerspectivesPreferencePage.java:605 not in PerspectivesPreferencePage.java:604 as in bug 293689, probably due to different builds we use.. There's just some guard needed to protect from NULL in getActivePerspective() in: FastViewManager fvm = page.getActivePerspective() .getFastViewManager(); *** Bug 293689 has been marked as a duplicate of this bug. *** Another way to get NPE from the bug 293689: > 1. Window > Save Perspective As... > 2. Give it a name, say, 'Java 2', and click 'OK'. > 3. Window > Preferences > General > Perspectives > 4. Select 'Java2' in the table. Click 'Delete'. > 5. A prompt comes up, click 'Yes'. > 6. Click 'OK'. > 7. You'll see a dialog try to materialize but never come up (a status handling > bug?). An NPE is logged. Created attachment 180677 [details]
Adding a few null checks
Patch applied to CVS Head. Thanks for reporting this! Verified in I20101026-2000. *** Bug 341939 has been marked as a duplicate of this bug. *** |