Bug 51138 - Error when exiting
Summary: Error when exiting
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-02-03 16:43 EST by Emerson Cargnin CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emerson Cargnin CLA 2004-02-03 16:43:07 EST
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)
Comment 1 Dani Megert CLA 2004-02-06 02:27:40 EST
Which build?
Comment 2 Dani Megert CLA 2004-02-06 09:15:34 EST
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.
Comment 3 Dani Megert CLA 2004-08-29 16:56:38 EDT
waiting for answer
Comment 4 Dani Megert CLA 2007-06-22 09:59:06 EDT
Get rid of deprecated state.
Comment 5 Dani Megert CLA 2007-06-22 10:04:25 EDT
.