Community
Participate
Working Groups
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)
Problem is reproducable and seems to be related to auto activated content assist. However, when turning off auto activation the problem still exists.
Changed JavaSourceViewerConfiguration to not return a content assistant in the case of no editor. Build > 20011123.