Project: Eclipse_Platform_UI
Bug 332577 [Compatibility] NPE when switching workspace and trying to copy 'Workbench Layout' settings
Reported: 2010-12-14 17:09:40 | Status: verified fixed

In the 4.1SDK, the following NPE comes after switching workspace with Copy Settings -> Workbench Layout selected java.lang.NullPointerException at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.getCurrentPresentationClassName(WorkbenchLayoutSettingsTransfer.java:258) at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.saveEditorState(WorkbenchLayoutSettingsTransfer.java:235) at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.saveState(WorkbenchLayoutSettingsTransfer.java:187) at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.saveState(WorkbenchLayoutSettingsTransfer.java:139) at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.saveSettings(WorkbenchLayoutSettingsTransfer.java:101) at org.eclipse.ui.internal.WorkbenchLayoutSettingsTransfer.transferSettings(WorkbenchLayoutSettingsTransfer.java:290) at org.eclipse.ui.internal.ide.ChooseWorkspaceWithSettingsDialog$4.run(ChooseWorkspaceWithSettingsDialog.java:335)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchLayoutSettingsTransfer.java