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 229006

Summary: IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
Product: editor Reporter: Alexander Simon <alexvsimon>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: VERIFIED FIXED    
Severity: normal CC: IrianR, janario, pietergdp, Vitex, williambacchi, ymajoros
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 197609
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Alexander Simon 2013-04-25 11:13:32 UTC
Build: NetBeans IDE 7.3.1 (Build 20130417-7b2099c0ac45)
VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: SunOS

User Comments:
alexvsimon: hyperlink om header

alexvsimon: hyperlink on header




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.updateLine(ViewBuilder.java:1277)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:922)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:731)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:685)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.reinitAllViews(ViewUpdates.java:201)
Comment 1 Alexander Simon 2013-04-25 11:13:34 UTC
Created attachment 133792 [details]
stacktrace
Comment 2 williambacchi 2013-06-05 11:19:27 UTC
Created attachment 135379 [details]
stacktrace

ctrl-x
Comment 3 janario 2013-07-28 04:48:57 UTC
Created attachment 137907 [details]
stacktrace

coding
Comment 4 janario 2013-07-28 04:51:57 UTC
Created attachment 137908 [details]
stacktrace

.
Comment 5 Exceptions Reporter 2013-08-18 03:40:03 UTC
Created attachment 138829 [details]
stacktrace

no me de
Comment 6 IrianR 2014-03-28 11:27:58 UTC
Created attachment 146374 [details]
stacktrace

Fixing a regular java class javadoc and formatting.
Comment 7 Lou Dasaro 2014-09-23 18:00:09 UTC
Exception continued after upgrade to NB 7.4. However, after upgrade to NB 8.0.1, anomaly disappeared! 
Resolving as FIXED. Please reopen if you experience this anomaly with NB 8.0.1 or greater, and specify the version of NetBeans and the JDK you are using.