Bug 15314

Summary: IllegalArgumentException during code assist
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2002-05-06 09:22:02 EDT
Build 20020502.4

Got the following exception during code assist. I have fill method arguments 
enabled.

java.lang.IllegalArgumentException: Argument cannot be null
	at org.eclipse.swt.SWT.error(SWT.java:1873)
	at org.eclipse.swt.SWT.error(SWT.java:1819)
	at org.eclipse.swt.graphics.GC.setForeground(GC.java:2088)
	at org.eclipse.jdt.internal.ui.text.link.LinkedPositionUI.paintControl
(LinkedPositionUI.java:395)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:78)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841)
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:655)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2698)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:1817)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1213)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1206)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:883)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:866)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:733)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:162)
	at org.eclipse.core.launcher.Main.run(Main.java:588)
	at org.eclipse.core.launcher.Main.main(Main.java:437)
Comment 1 Dirk Baeumer CLA 2002-05-06 09:38:23 EDT
Happens when inserting a template
Comment 2 Erich Gamma CLA 2002-05-06 17:05:29 EDT
Claude I think this one is fixed by now - pls confirm and dispose
Comment 3 Claude Knaus CLA 2002-05-07 03:49:53 EDT
yes, it is.