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 258910

Summary: IndexOutOfBoundsException: Invalid line index=908 >= lineCount=738
Product: editor Reporter: dhanav
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: dhanav
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198306
Attachments: stacktrace

Description dhanav 2016-04-19 22:21:15 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.71-b15, Java(TM) SE Runtime Environment, 1.8.0_71-b15
OS: Linux

User Comments:
GUEST: Not sure what happened.

GUEST: IDE seemed to take a long time 'detecting background changes' (or similar?)

GUEST: 1

GUEST: overscrolled in an editor using PAGE DOWN key.
reproducably also after restart. open long file, hold PAGE DOWN till it beeps.

dhanav: Silent exception.

GUEST: Started the netbeans.. Tried to open some file

GUEST: Jumping to line 1491 through vim plugin.




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=908 >= lineCount=738
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:91)
   at com.raelity.jvi.swing.SwingBuffer.getLineElement(SwingBuffer.java:423)
   at com.raelity.jvi.swing.SwingBuffer.getLineStartOffset(SwingBuffer.java:91)
   at com.raelity.jvi.core.FPOS.set(FPOS.java:130)
   at com.raelity.jvi.core.FPOS.set(FPOS.java:124)
   at com.raelity.jvi.core.ColonCommands.parseCommandGuts(ColonCommands.java:350)
Comment 1 dhanav 2016-04-19 22:21:17 UTC
Created attachment 159336 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-09-30 21:46:11 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=198306