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 262650

Summary: StringIndexOutOfBoundsException: String index out of range: 13030
Product: editor Reporter: PipoLotti
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: Andrea_Elizabeth, crosati, i9agencia
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217965
Attachments: stacktrace

Description PipoLotti 2016-07-01 13:57:52 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
GUEST: Compiling

GUEST: I don't know how I produced this error.

GUEST: autoindend code doesn't work. throws "StringIndexOutOfBoundsException: String index out of range: 10023" and no indend at all

PipoLotti: Just modifiing (while debuging) a jsp page and saw the alert...

crosati: -

GUEST: Tried to call web service operation in a web application.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 13030
   at java.lang.String.charAt(String.java:658)
   at org.netbeans.modules.java.source.save.Reindenter.reindent(Reindenter.java:185)
   at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:555)
   at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316)
   at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:299)
   at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:171)
Comment 1 PipoLotti 2016-07-01 13:57:55 UTC
Created attachment 160219 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-12-04 20:19:25 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217965