Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 158474 - [Presentations] New Eclipse 3.3 presentation: null pointer restoring my java perspective
Summary: [Presentations] New Eclipse 3.3 presentation: null pointer restoring my java ...
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eric Moffatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 153957
  Show dependency tree
 
Reported: 2006-09-24 12:12 EDT by Johan Compagner CLA
Modified: 2008-02-05 15:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Compagner CLA 2006-09-24 12:12:59 EDT
When enabling the new presentation layer i always get a nullpointer like the one below when trying to open my java perspective.
The normal navigator perspective works fine.

java.lang.NullPointerException
	at org.eclipse.ui.internal.RectangleAnimation.<init>(RectangleAnimation.java:130)
	at org.eclipse.ui.internal.RectangleAnimation.<init>(RectangleAnimation.java:149)
	at org.eclipse.ui.internal.Perspective.moveToTrim(Perspective.java:383)
	at org.eclipse.ui.internal.PartStack.setMinimized(PartStack.java:1174)
	at org.eclipse.ui.internal.PartStack.setState(PartStack.java:1224)
	at org.eclipse.ui.internal.PartStack.restoreState(PartStack.java:936)
	at org.eclipse.ui.internal.ViewSashContainer.restoreState(ViewSashContainer.java:119)
	at org.eclipse.ui.internal.PerspectiveHelper.restoreState(PerspectiveHelper.java:1244)
	at org.eclipse.ui.internal.Perspective.restoreState(Perspective.java:1175)
	at org.eclipse.ui.internal.Perspective.loadCustomPersp(Perspective.java:734)
	at org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:226)
	at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:132)
	at org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1484)
	at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:947)
	at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:938)
	at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:3384)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3382)
	at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run(ChangeToPerspectiveMenu.java:92)
	at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:336)
	at org.eclipse.ui.actions.OpenPerspectiveAction.runWithEvent(OpenPerspectiveAction.java:78)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3390)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3009)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165)


it has everything to do with:
ENABLE_MIN_MAX=true
in the org.eclipse.ui.prefs file. If i set that off then it works fine.
so somehow an old restore state can't merge into the new one?
Comment 1 Eric Moffatt CLA 2006-10-02 11:14:57 EDT
Yes, this is my fault for not completely 'restoring' the presentation before switching modes (i.e. you likely had something already minimized/maximized before changing the setting.

For now you should be able to do the following: go back to the default presentation and set it up so that everything is restored (no min/max) and then switch over to the new state...
Comment 2 Eric Moffatt CLA 2007-05-14 14:26:30 EDT
Fixed by interim work...
Comment 3 Eric Moffatt CLA 2008-02-05 15:19:11 EST
Closing...