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
URL:
Keywords:
Depends on:
Blocks:
 
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


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

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




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