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

Summary: IndexOutOfBoundsException: Invalid line index=174 >= lineCount=174
Product: editor Reporter: Jiri Prox <jiriprox>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219136
Attachments: stacktrace

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