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
Depends on:
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

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

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)

java.lang.IndexOutOfBoundsException: Invalid line index=204 >= lineCount=204
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(
   at javax.swing.plaf.basic.BasicTextUI$RootView.paint(
Comment 1 mjr_1974 2016-02-08 03:56:13 UTC
Created attachment 158405 [details]