Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException after install #1

Closed
nafeger opened this issue Jan 14, 2011 · 8 comments
Closed

NullPointerException after install #1

nafeger opened this issue Jan 14, 2011 · 8 comments
Labels

Comments

@nafeger
Copy link

nafeger commented Jan 14, 2011

java.lang.NullPointerException
at org.eclipse.wst.jsdt.web.ui.internal.style.java.LineStyleProviderForJSDT.handlePropertyChange(LineStyleProviderForJSDT.java:259)
at org.eclipse.wst.jsdt.web.ui.internal.style.java.LineStyleProviderForJSDT$1.propertyChange(LineStyleProviderForJSDT.java:55)
at org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:375)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:372)
at org.eclipse.ui.preferences.ScopedPreferenceStore$2.preferenceChange(ScopedPreferenceStore.java:194)
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 com.github.fhd.eclipsecolortheme.mapper.ThemePreferenceMapper.putPreference(ThemePreferenceMapper.java:50)
at com.github.fhd.eclipsecolortheme.mapper.JavaScriptEditorMapper.map(JavaScriptEditorMapper.java:33)
at com.github.fhd.eclipsecolortheme.ColorThemeManager.applyTheme(ColorThemeManager.java:144)
at com.github.fhd.eclipsecolortheme.preferences.ColorThemePreferencePage.performOk(ColorThemePreferencePage.java:46)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:447)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:169)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
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:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

session data:

eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -showlocation
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data c:/users/nfeger/workspace -showlocation

This is a continuation of log file C:\Users\nfeger\workspace.metadata.bak_0.log
Created Time: 2011-01-14 13:13:02.894

@fhd
Copy link
Member

fhd commented Jan 16, 2011

That's odd, does this happen every time you press "OK" on the plugin's preferences page or just this once? What's your Eclipse version and are all plugins (especially JavaScript Development Tools, you seem to have them) up to date?

@nafeger
Copy link
Author

nafeger commented Jan 17, 2011

Yeah it happens every time, and hitting okay now takes on the order of a minute.

eclipse version: 3.6.1
Web Tools Platform: 3.2.2
Eclipse Javascript Development: 1.2.2.v20100817

I just did a 'check for updates' and nothing was found.

I really appreciate this plugin, I've been yearning for a dark background for years.
Loading a js file works fine and the color scheme preferences look great.

@nafeger
Copy link
Author

nafeger commented Jan 17, 2011

well I noticed a new version of the color theme plugin 0.4 I think, grabbed that, and now my NPE went away, but so did my preferences entry for the theme picker.

@fhd
Copy link
Member

fhd commented Jan 17, 2011

0.4 is the most current version, but there should be a color picker. Did I get that right that everything worked fine even after that NullPointerException with the previous version?

Here's what you could try: Remove ECT (follow the "already installed" link under "Install new software"), restart and then install it again.

@nafeger
Copy link
Author

nafeger commented Jan 17, 2011

okay uninstalling and reinstalling worked great, and the NPE is gone.

@fhd
Copy link
Member

fhd commented Jan 17, 2011

What do you know, maybe some kind of Eclipse hiccup :) Glad it works now!

@fhd
Copy link
Member

fhd commented Jan 18, 2011

I've reopened this, because it happened for Roger Dudler as well.

@fhd
Copy link
Member

fhd commented Jan 22, 2011

This problem only occurrs when the PHP Development Tools are installed and a PHP file is opened while changing the color theme. I solved the issue by closing and reopening all editors when applying color themes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants