| Summary: | IWorkbenchPage.getPerspective() returns 'null' inside perspectiveActivated(...) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Pawel Piech <pawel.1.piech> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, pwebster, remy.suen | ||||
| Version: | 4.2 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
I've protected the code in JDT against 'null' but the real issue is that perspectiveActivated(...) gets called while IWorkbenchPage.getPerspective() still returns 'null'. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |
Created attachment 206032 [details] Exception trace. Version: 4.1.0 Build id: I20111025-2000 I got the following trace after I started SDK with an existing workspace. java.lang.NullPointerException at org.eclipse.core.internal.preferences.EclipsePreferences.internalGet(EclipsePreferences.java:599) at org.eclipse.core.internal.preferences.EclipsePreferences.get(EclipsePreferences.java:452) at org.eclipse.core.internal.preferences.PreferencesService.get(PreferencesService.java:465) at org.eclipse.ui.preferences.ScopedPreferenceStore.internalGet(ScopedPreferenceStore.java:474) at org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean(ScopedPreferenceStore.java:387) at org.eclipse.jdt.internal.ui.javaeditor.ToggleBreadcrumbAction.perspectiveActivated(ToggleBreadcrumbAction.java:132) at org.eclipse.ui.internal.PerspectiveListenerList$1.run(PerspectiveListenerList.java:74) ... (full trace attached)