Community
Participate
Working Groups
I just set eclipse to not ask when exiting and got a null pointer at the command line and the following stacktrace at .log file. I couldn't reproduce the error... !SESSION Fev 03, 2004 19:35:21.480 --------------------------------------------- java.version=1.4.2 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=pt_BR Command-line arguments: -os linux -ws gtk -arch x86 !ENTRY org.eclipse.ui 4 4 Fev 03, 2004 19:35:21.481 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 Fev 03, 2004 19:35:21.495 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setSelection(JavaEditor.java:1904) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EditorSelectionChangedListener.selectionChanged(JavaEditor.java:271) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EditorSelectionChangedListener.selectionChanged(JavaEditor.java:264) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2157) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2110) at org.eclipse.jface.text.TextViewer$4.run(TextViewer.java:2089) at org.eclipse.swt.widgets.Display.timerProc(Display.java:2188) at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1628) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1531) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1507) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:265) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:248) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:279) at org.eclipse.core.launcher.Main.run(Main.java:742) at org.eclipse.core.launcher.Main.main(Main.java:581)
Which build?
Cannot reproduce either. This looks like a side-effect of another bug: when shutting down we first unregister the listeners and then null-out the fields. We need the build Id in order to map the line number to the code where the NPE happens.
waiting for answer
Get rid of deprecated state.
.