Community
Participate
Working Groups
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?
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...
Fixed by interim work...
Closing...