This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57366 - [41cat] IllegalArgumentException in autocomplete
Summary: [41cat] IllegalArgumentException in autocomplete
Status: RESOLVED DUPLICATE of bug 56204
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-02 03:28 UTC by schwarcz
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB log (124.57 KB, text/plain)
2005-04-02 03:29 UTC, schwarcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schwarcz 2005-04-02 03:28:42 UTC
[ BUILD # : 20050329 ]
[ JDK VERSION : 1.5.0_02 ]

Hit control space while typing an import statement and got an IllegalArgumentException.

java.lang.IllegalArgumentException: Can't add attribute to 0-length text
	at java.text.AttributedString.addAttribute(AttributedString.java:291)
	at org.netbeans.modules.editor.java.NbJMIPaintComponent.drawStringToGraphics(NbJMIPaintComponent.java:210)
	at org.netbeans.modules.editor.java.NbJMIPaintComponent.drawString(NbJMIPaintComponent.java:192)
	at org.netbeans.modules.editor.java.NbJMIPaintComponent$NbClassPaintComponent.draw(NbJMIPaintComponent.java:335)
	at org.netbeans.modules.editor.java.NbJMIPaintComponent.paintComponent(NbJMIPaintComponent.java:128)
	at javax.swing.JComponent.paint(JComponent.java:1003)
	at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
	at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:205)
	at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:287)
Comment 1 schwarcz 2005-04-02 03:29:28 UTC
Created attachment 21307 [details]
NB log
Comment 2 Dusan Balek 2005-04-04 10:33:28 UTC
It should be already fixed. Thanks for the report.

*** This issue has been marked as a duplicate of 56204 ***