Bug 6250 - NullPointerException when Editting in Synchronize View
Summary: NullPointerException when Editting in Synchronize View
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-23 06:15 EST by Simon Kent CLA
Modified: 2001-11-23 10:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Kent CLA 2001-11-23 06:15:23 EST
When comparing the workspace version of a file, and the stream version, a 
NullPointerException is thrown when a period is typed after a non-commented 
piece of code.

e.g. public abstract Object forEachUserGroup(UserGroupClosure closure.);

When the . is placed after the word closure, the Exception is thrown, an 
internal error is generated and the corresponding log entry is:

Log: Fri Nov 23 11:10:36 GMT 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Fri Nov 23 11:10:36 GMT 2001
4 org.eclipse.ui 0 Failed to execute runnable (java.lang.NullPointerException)
org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:1846)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:96)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1342)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:727)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:710)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Erich Gamma CLA 2001-11-23 06:37:16 EST
Problem is reproducable and seems to be related to auto activated content 
assist. However, when turning off auto activation the problem still exists.
Comment 2 Kai-Uwe Maetzel CLA 2001-11-23 10:13:52 EST
Changed JavaSourceViewerConfiguration to not return a content assistant in the 
case of no editor. 
Build > 20011123.