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 269100 - StringIndexOutOfBoundsException: String index out of range: 5217
Summary: StringIndexOutOfBoundsException: String index out of range: 5217
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-24 04:35 UTC by ebakke
Modified: 2016-12-14 13:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220212


Attachments
stacktrace (5.57 KB, text/plain)
2016-11-24 04:35 UTC, ebakke
Details
stacktrace (6.87 KB, text/plain)
2016-12-08 02:06 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ebakke 2016-11-24 04:35:50 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.92-b14, Java(TM) SE Runtime Environment, 1.8.0_92-b14
OS: Mac OS X

User Comments:
kaenganxt: - Startup
- Some idle time
- Java development

GUEST: .

gtzabari: Pasted into Java file. Exception thrown.

GUEST: Pasting some text in the editor

ebakke: Editing code in the Java editor.

GUEST: Editing a Java class




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 5217
   at java.lang.String.charAt(String.java:658)
   at org.netbeans.modules.java.hints.bugs.Tiny.indent(Tiny.java:330)
   at org.netbeans.modules.java.hints.bugs.Tiny.indentation(Tiny.java:305)
   at sun.reflect.GeneratedMethodAccessor138.invoke(GeneratedMethodAccessor138.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
Comment 1 ebakke 2016-11-24 04:35:52 UTC
Created attachment 163013 [details]
stacktrace
Comment 2 Jesse Glick 2016-12-08 02:06:10 UTC
Created attachment 163184 [details]
stacktrace

Editing sources.
Comment 3 Svata Dedic 2016-12-14 13:54:20 UTC
Apparently wrong character offset assigned to a JCTree, which should be fixed. I need some sample source causing the error.