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 235727 - IndexOutOfBoundsException: Invalid line index=5784 >= lineCount=5784
Summary: IndexOutOfBoundsException: Invalid line index=5784 >= lineCount=5784
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 04:09 UTC by MackSix
Modified: 2015-02-04 06:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203722


Attachments
stacktrace (3.22 KB, text/plain)
2013-09-10 04:09 UTC, MackSix
Details
stacktrace (3.22 KB, text/plain)
2013-09-15 05:38 UTC, MackSix
Details
stacktrace (3.22 KB, text/plain)
2013-11-20 02:39 UTC, janario
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-09-10 04:09:30 UTC
Build: NetBeans IDE Dev (Build 201309070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b55, Java(TM) SE Runtime Environment, 1.7.0_40-b40
OS: Windows 7

User Comments:
MackSix: Using rectangular selection on a big file to delete space. Highlighted a long column of space and preseed delete 2 times.

This [1] is not fixed either.

[1] https://netbeans.org/bugzilla/show_bug.cgi?id=234664




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=5784 >= lineCount=5784
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84)
   at org.netbeans.modules.editor.lib2.RectangularSelectionUtils.removeChar(RectangularSelectionUtils.java:131)
   at org.netbeans.editor.BaseKit$DeleteCharAction$1.run(BaseKit.java:1810)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:351)
   at org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:1804)
   at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
Comment 1 MackSix 2013-09-10 04:09:32 UTC
Created attachment 139867 [details]
stacktrace
Comment 2 MackSix 2013-09-15 05:38:59 UTC
Created attachment 140091 [details]
stacktrace

Using the rectangular selection. to delete some whitespace in a big file.
Comment 3 MackSix 2013-09-15 05:54:33 UTC
It will happen on a 1017 line properties file deleting whitespace with rectangular selection. It happens in NetBeans 7.3.1 too.
Comment 4 MackSix 2013-09-15 05:57:55 UTC
Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b106
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 janario 2013-11-20 02:39:53 UTC
Created attachment 142382 [details]
stacktrace

.
Comment 6 Marian Mirilovic 2015-02-04 06:30:17 UTC
Just 3 reports and last from 2013 ... closing as worksforme, please reopen if you face this again.