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 - IndexOutOfBoundsException: Invalid line index=204 >= lineCount=204
Summary: IndexOutOfBoundsException: Invalid line index=204 >= lineCount=204
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-08 03:56 UTC by mjr_1974
Modified: 2017-10-18 06:50 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216245


Attachments
stacktrace (5.51 KB, text/plain)
2016-02-08 03:56 UTC, mjr_1974
Details

Note You need to log in before you can comment on or make changes to this bug.
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