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 211085 - StringIndexOutOfBoundsException: String index out of range: 152
Summary: StringIndexOutOfBoundsException: String index out of range: 152
Status: RESOLVED DUPLICATE of bug 210909
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-04-12 11:17 UTC by fortruth
Modified: 2012-04-22 20:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186754


Attachments
stacktrace (5.17 KB, text/plain)
2012-04-12 11:18 UTC, fortruth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fortruth 2012-04-12 11:17:54 UTC
Build: NetBeans IDE Dev (Build 201204080400)
VM: OpenJDK 64-Bit Server VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_24-b24
OS: Linux

User Comments:
fortruth: when I type on  "<input yp " it happened.

GUEST: Just typing HTML, autocompletion kicked in and after that on every keypress the mentioned error occurs, even after Restart of NB.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 152
   at java.lang.String.substring(String.java:1946)
   at java.lang.String.subSequence(String.java:1984)
   at org.netbeans.modules.html.parser.ElementsFactory$CommonAttribute.name(ElementsFactory.java:854)
   at org.netbeans.modules.html.parser.ElementsFactory$EmptyOpenTag.getAttribute(ElementsFactory.java:274)
   at org.netbeans.modules.html.editor.gsf.HtmlStructureScanner$HtmlStructureItem._getAttributeValue(HtmlStructureScanner.java:236)
   at org.netbeans.modules.html.editor.gsf.HtmlStructureScanner$HtmlStructureItem.getAttributeValue(HtmlStructureScanner.java:223)
Comment 1 fortruth 2012-04-12 11:18:00 UTC
Created attachment 118190 [details]
stacktrace
Comment 2 Marek Fukala 2012-04-12 13:59:00 UTC

*** This bug has been marked as a duplicate of bug 210909 ***
Comment 3 Exceptions Reporter 2012-04-22 20:32:28 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=186754