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 210909 - StringIndexOutOfBoundsException: String index out of range: 53
Summary: StringIndexOutOfBoundsException: String index out of range: 53
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 211085 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-09 22:14 UTC by mrpc
Modified: 2012-04-20 04:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186789


Attachments
stacktrace (5.27 KB, text/plain)
2012-04-09 22:15 UTC, mrpc
Details
stacktrace (7.01 KB, text/plain)
2012-04-13 22:38 UTC, rip_pit
Details
stacktrace (4.66 KB, text/plain)
2012-04-14 16:41 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpc 2012-04-09 22:14:56 UTC
Build: NetBeans IDE Dev (Build 201204080400)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-414, Java(TM) SE Runtime Environment, 1.6.0_31-b04-414-11M3626
OS: Mac OS X

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 53
   at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:879)
   at java.lang.StringBuilder.substring(StringBuilder.java:55)
   at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:858)
   at java.lang.StringBuilder.subSequence(StringBuilder.java:55)
   at org.netbeans.modules.html.parser.ElementsFactory$CommonAttribute.name(ElementsFactory.java:854)
   at org.netbeans.modules.html.parser.ElementsFactory$EmptyOpenTag.getAttribute(ElementsFactory.java:274)
Comment 1 mrpc 2012-04-09 22:15:01 UTC
Created attachment 118020 [details]
stacktrace
Comment 2 Marek Fukala 2012-04-11 08:58:36 UTC
Not clear to me how exactly the situation happens so I've added some diagnostic code and will close the issue as fixed. It will be automatically reopened or new one created next time the problem happens.

changeset:   219483:93305870588d
summary:     #210976 - StringIndexOutOfBoundsException: String index out of range: 399; #210909 - StringIndexOutOfBoundsException: String index out of range: 53 - adding some diagnostic code, not real fix!
Comment 3 Quality Engineering 2012-04-12 10:00:19 UTC
Integrated into 'main-golden', will be available in build *201204120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/93305870588d
User: Marek Fukala <mfukala@netbeans.org>
Log: #210976 - StringIndexOutOfBoundsException: String index out of range: 399; #210909 - StringIndexOutOfBoundsException: String index out of range: 53 - adding some diagnostic code, not real fix!
Comment 4 Marek Fukala 2012-04-12 13:59:00 UTC
*** Bug 211085 has been marked as a duplicate of this bug. ***
Comment 5 rip_pit 2012-04-13 22:38:26 UTC
Created attachment 118261 [details]
stacktrace
Comment 6 Exceptions Reporter 2012-04-14 16:41:26 UTC
Created attachment 118273 [details]
stacktrace