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 213127 - StringIndexOutOfBoundsException: String index out of range: 137
Summary: StringIndexOutOfBoundsException: String index out of range: 137
Status: RESOLVED DUPLICATE of bug 211792
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:
Depends on:
Blocks:
 
Reported: 2012-05-28 22:03 UTC by krheinwald
Modified: 2012-06-10 15:57 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188526


Attachments
stacktrace (4.14 KB, text/plain)
2012-05-28 22:03 UTC, krheinwald
Details
stacktrace (4.26 KB, text/plain)
2012-05-29 17:38 UTC, Exceptions Reporter
Details
stacktrace (4.29 KB, text/plain)
2012-05-30 14:29 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krheinwald 2012-05-28 22:03:22 UTC
This bug was originally marked as duplicate of bug 210909, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2 Beta (Build 201205031832)
VM: Java HotSpot(TM) Client VM, 20.7-b02, Java(TM) SE Runtime Environment, 1.6.0_32-b05
OS: Windows 7

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 137
   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 krheinwald 2012-05-28 22:03:27 UTC
Created attachment 119973 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-05-29 17:35:45 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=188526
Comment 3 Exceptions Reporter 2012-05-29 17:38:46 UTC
Created attachment 120015 [details]
stacktrace

typing
Comment 4 Marek Fukala 2012-05-30 10:33:16 UTC

*** This bug has been marked as a duplicate of bug 211792 ***
Comment 5 Exceptions Reporter 2012-05-30 14:29:49 UTC
Created attachment 120075 [details]
stacktrace

adding a <a tag without the closeing >