Project: Eclipse_Platform_UI
Bug 309041 [compatibility] NPE importing preferences
Reported: 2010-04-13 15:53:22 | Status: resolved fixed

Eclipse 4.0 build #40 1) File > Import > Preferences 2) Pick a preference file exported by 3.6 build 3) Finish java.lang.NullPointerException at org.eclipse.ui.internal.PlatformUIPreferenceListener.preferenceChange(PlatformUIPreferenceListener.java:155) at org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:753) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:756) at org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:769) at org.eclipse.core.internal.preferences.PreferencesService.copyFromTo(PreferencesService.java:357) at org.eclipse.core.internal.preferences.PreferencesService$6.visit(PreferencesService.java:709) at org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:105) at org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:109) at org.eclipse.core.internal.preferences.EclipsePreferences.accept(EclipsePreferences.java:109) at org.eclipse.core.internal.preferences.PreferencesService.internalApply(PreferencesService.java:713) at org.eclipse.core.internal.preferences.PreferencesService.applyPreferences(PreferencesService.java:93) at org.eclipse.ui.internal.wizards.preferences.WizardPreferencesImportPage1.transfer(WizardPreferencesImportPage1.java:185) at org.eclipse.ui.internal.wizards.preferences.WizardPreferencesPage.finish(WizardPreferencesPage.java:619) at org.eclipse.ui.internal.wizards.preferences.PreferencesImportWizard.performFinish(PreferencesImportWizard.java:88) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:810) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:429)

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