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 220584 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 14:06 UTC by Vladimir Riha
Modified: 2012-11-30 02:36 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190058


Attachments
stacktrace (2.42 KB, text/plain)
2012-10-22 14:06 UTC, Vladimir Riha
Details
file where it happened (590 bytes, text/html)
2012-10-22 14:07 UTC, Vladimir Riha
Details
stacktrace (2.42 KB, text/plain)
2012-11-02 13:17 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-10-22 14:06:56 UTC
Build: NetBeans IDE Dev (Build web-main-8936-on-20121022)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b11
OS: Linux

User Comments:
GUEST: in html code, trying to open code completion box with cmd+space

miibx5: executing the auto-complete

vriha: invoking cc for values of class and id html attributes




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:872)
   at java.lang.StringBuilder.substring(StringBuilder.java:72)
   at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:849)
   at java.lang.StringBuilder.subSequence(StringBuilder.java:72)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.queryHtmlEndTagInEmbeddedCode(HtmlCompletionQuery.java:179)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.access$200(HtmlCompletionQuery.java:96)
Comment 1 Vladimir Riha 2012-10-22 14:06:58 UTC
Created attachment 126332 [details]
stacktrace
Comment 2 Vladimir Riha 2012-10-22 14:07:46 UTC
Created attachment 126333 [details]
file where it happened
Comment 3 Vladimir Riha 2012-11-02 13:17:07 UTC
Created attachment 127000 [details]
stacktrace

invoked cc for ID attribute in HTML file
Comment 4 Marek Fukala 2012-11-28 15:12:20 UTC
fixed in web-main#320a1f757e81
Comment 5 Quality Engineering 2012-11-30 02:36:54 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/320a1f757e81
User: Marek Fukala <mfukala@netbeans.org>
Log: #220584 - StringIndexOutOfBoundsException: String index out of range: -1