Ticket #396 (new defect)

Opened 8 months ago

Last modified 7 months ago

Change any CFEclipse setting and clicking 'OK' produces java.lang.NullPointerException

Reported by: Thomas Owned by: markd
Type: defect Priority: minor
Milestone: 1.3.2 Component: preferences
Version: 1.3 Keywords: java.lang.NullPointerException
Cc:

Description

This error occurs when clicking the 'OK' button while on the CFEclipse preferences node. The preferences are not saved when this error appears. You can save the preferences by clicking the 'Apply' button, but not the 'OK' button.

I have tried complete Eclipse/CFEclipse reinstalls. I have also tried different/older versions of the JRE.

To reproduce the error (Windows Vista SP1, Eclipse 3.3.2, and CFEclipse 1.3.1.6)...

Click Window -> Preferences

Click/Highlight the CFEclipse node, change any preference, and click the 'OK' button.

The following dialog box appears:
"An error has occurred. See error log for more details."

The error log:
!ENTRY org.eclipse.jface 4 0 2008-04-16 10:12:59.709
!MESSAGE java.lang.NullPointerException?
!STACK 0
java.lang.NullPointerException?

at org.cfeclipse.cfml.preferences.CFMLPreferencePage.performOk(CFMLPreferencePage.java:325)
at org.eclipse.jface.preference.PreferenceDialog?$12.run(PreferenceDialog?.java:926)
at org.eclipse.core.runtime.SafeRunner?.run(SafeRunner?.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable?.run(SafeRunnable?.java:199)
at org.eclipse.jface.preference.PreferenceDialog?.okPressed(PreferenceDialog?.java:906)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog?.okPressed(FilteredPreferenceDialog?.java:374)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog?.okPressed(WorkbenchPreferenceDialog?.java:164)
at org.eclipse.jface.preference.PreferenceDialog?.buttonPressed(PreferenceDialog?.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener?.handleEvent(TypedListener?.java:227)
at org.eclipse.swt.widgets.EventTable?.sendEvent(EventTable?.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.internal.OpenPreferencesAction?.run(OpenPreferencesAction?.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem?.handleWidgetSelection(ActionContributionItem?.java:546)
at org.eclipse.jface.action.ActionContributionItem?.access$2(ActionContributionItem?.java:490)
at org.eclipse.jface.action.ActionContributionItem?$5.handleEvent(ActionContributionItem?.java:402)
at org.eclipse.swt.widgets.EventTable?.sendEvent(EventTable?.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle?.run(EclipseAppHandle?.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher?.runApplication(EclipseAppLauncher?.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher?.start(EclipseAppLauncher?.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter?.run(EclipseStarter?.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter?.run(EclipseStarter?.java:176)
at sun.reflect.NativeMethodAccessorImpl?.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl?.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl?.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Attachments

patch.txt (1.6 kB) - added by burnsra 7 months ago.

Change History

Changed 7 months ago by burnsra

Changed 7 months ago by burnsra

The performOk() method still contains code referencing the template path preference, which has been removed. I recommend removing the code until template path is implemented. If possible apply the template path preference in a branch and merge to trunk when ready. The patch.txt file attached should resolve the issue.

Note: See TracTickets for help on using tickets.