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 155221

Summary: IndexOutOfBoundsException: Invalid line index=181 >= lineCount=141
Product: editor Reporter: cbulcu <cbulcu>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=11592
Issue Type: DEFECT Exception Reporter: 11592
Attachments: stacktrace

Description cbulcu 2008-12-11 12:46:51 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
marco_bresciani: 
I got this kind of thing when I deleted line 15 in my SQL in "SQL Command 1" window and then hit "Line 15, column 1" that was hyperlinked in my "SQL Command 1 execution" panel on the bottom.

GUEST: Finding Bugs

giorgio42: Double clicked entry in FindBugs result list.

wobster: moving through find bugs output



Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=181 >= lineCount=141
        at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:112)
        at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644)
        at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176)
        at org.openide.text.DocumentLine$Set.offset(DocumentLine.java:1026)
Comment 1 cbulcu 2008-12-11 12:47:00 UTC
Created attachment 74851 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-01-05 15:11:20 UTC

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