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.
[ 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)
Created attachment 21307 [details] NB log
It should be already fixed. Thanks for the report. *** This issue has been marked as a duplicate of 56204 ***