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 257882

Summary: IndexOutOfBoundsException: Invalid line index=204 >= lineCount=204
Product: editor Reporter: mjr_1974 <mjr_1974>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: crosati, fillumina, grimlock81, rdekeijzer_pm, Vitex
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216245
Attachments: stacktrace

Description mjr_1974 2016-02-08 03:56:08 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.72-b15, Java(TM) SE Runtime Environment, 1.8.0_72-b15
OS: Linux

User Comments:
GUEST: Silent Exception

GUEST: Mercurial push

GUEST: Auto-format (on save) of a Java source file with some syntax errors.

GUEST: erqwew

GUEST: whats this?

GUEST: <Please provide a description of the problem or the steps to reproduce> I restarted netbeans after update and this happened

GUEST: Sorry, no details here.

GUEST: Unknown

GUEST: it just appeared

mjr_1974: editing a file

GUEST: Exception thrown afte rdoing auto-format-on-save of a Java file (a TopComponent, specifically)




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=204 >= lineCount=204
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:91)
   at bluej.editor.moe.MoePlainView.paint(MoePlainView.java:232)
   at bluej.editor.moe.NaviviewView.paint(NaviviewView.java:165)
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
   at bluej.editor.moe.NaviView.paintImgBuffer(NaviView.java:421)
   at bluej.editor.moe.NaviView.paintComponent(NaviView.java:498)
Comment 1 mjr_1974 2016-02-08 03:56:13 UTC
Created attachment 158405 [details]
stacktrace