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 225820 - IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
Summary: IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2013-02-06 23:29 UTC by minoleg
Modified: 2016-06-14 19:02 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 198303

stacktrace (3.73 KB, text/plain)
2013-02-06 23:29 UTC, minoleg
stacktrace (3.73 KB, text/plain)
2013-02-07 13:13 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description minoleg 2013-02-06 23:29:04 UTC
Build: NetBeans IDE 7.3 RC1 (Build 201301240957)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows 7

User Comments:
rburkhead: Compiling a single file. The file contents were not saved when I hit the compile menu item, but were saved by the compile action (at least the indicator on the tab suggested it was).

rburkhead: Cutting and pasting methods from one class to another.

hallyhaa: CTRL-X to cut out a portion of HTML from an HTML file.

java.lang.IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.updateLineEndOffset(
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createView(
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(
Comment 1 minoleg 2013-02-06 23:29:06 UTC
Created attachment 131081 [details]
Comment 2 Exceptions Reporter 2013-02-07 13:13:30 UTC
Created attachment 131093 [details]
Comment 3 Exceptions Reporter 2013-02-11 22:01:45 UTC
This bug already has 10 duplicates 
Comment 4 Miloslav Metelka 2013-08-27 09:53:20 UTC
Unfortunately even after issue #225451 was fixed apparently the IOOBE may still happen.