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 254342 - IndexOutOfBoundsException: Invalid line index=174 >= lineCount=174
Summary: IndexOutOfBoundsException: Invalid line index=174 >= lineCount=174
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: 2015-08-13 09:51 UTC by Jiri Prox
Modified: 2015-08-13 09:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219136

stacktrace (3.22 KB, text/plain)
2015-08-13 09:51 UTC, Jiri Prox

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2015-08-13 09:51:50 UTC
This bug was originally marked as duplicate of bug 235727, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201508120002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows 7

User Comments:
jiriprox: IOOBE when pressing delete while whole text is in rectangular selection

java.lang.IndexOutOfBoundsException: Invalid line index=174 >= lineCount=174
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(
   at org.netbeans.modules.editor.lib2.RectangularSelectionUtils.removeChar(
   at org.netbeans.editor.BaseKit$DeleteCharAction$
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(
   at org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(
   at org.netbeans.editor.BaseAction.actionPerformed(
Comment 1 Jiri Prox 2015-08-13 09:51:52 UTC
Created attachment 155324 [details]