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 267913 - StringIndexOutOfBoundsException: String index out of range: 39
Summary: StringIndexOutOfBoundsException: String index out of range: 39
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-07 06:49 UTC by Exceptions Reporter
Modified: 2016-10-05 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226107


Attachments
stacktrace (2.67 KB, text/plain)
2016-09-07 06:49 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-09-07 06:49:02 UTC
This bug was originally marked as duplicate of bug 220584, 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 201608290002)
VM: Java HotSpot(TM) Client VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 7

User Comments:
GUEST: An unexpected & unprovoked exception. i suspect it was provoked by the syntax highlighter.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 39
   at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:906)
   at java.lang.StringBuilder.substring(StringBuilder.java:76)
   at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:885)
   at java.lang.StringBuilder.subSequence(StringBuilder.java:76)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.queryHtmlEndTagInEmbeddedCode(HtmlCompletionQuery.java:178)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.access$100(HtmlCompletionQuery.java:91)
Comment 1 Exceptions Reporter 2016-09-07 06:49:04 UTC
Created attachment 161939 [details]
stacktrace
Comment 2 Milutin Kristofic 2016-10-05 13:40:19 UTC
it looks like a corrupted file. There are more errors like this in your messages.log:

WARNING [org.netbeans.modules.versioning.util.Utils]: associateEncoding() no file object available for C:\Users\vivanov\AppData\Local\Temp\vcs-1473229430703\vcs-1473230761736\submission-anlysis-claim2.js
WARNING [org.netbeans.modules.versioning.util.Utils]: associateEncoding() no file object available for C:\Users\vivanov\AppData\Local\Temp\vcs-1473229430703\vcs-1473230762153\submission-anlysis-claim2.js
INFO [org.netbeans.modules.javascript2.editor.parser.SanitizingParser]: Exception during parsing
java.lang.StringIndexOutOfBoundsException: String index out of range: 38
	at java.lang.String.charAt(String.java:658)


There was probably wrong encoding in a file, or it was corrupted. I am not fixing this without more information.