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 185311 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 188599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-30 12:58 UTC by _Anton_
Modified: 2010-12-09 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166596


Attachments
stacktrace (3.11 KB, text/plain)
2010-04-30 12:58 UTC, _Anton_
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _Anton_ 2010-04-30 12:58:13 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP

User Comments:
_Anton_: I was add in composite component interface attribute like this:
<cc:attribute name=name" default="word,word"/>
After this I click at component definition tag:
<ez:hallEditForm />
and exception raised.
If I change default value to "word" all ok.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1937)
   at org.netbeans.modules.web.jsf.editor.index.CompositeComponentModel$Factory.loadFromIndex(CompositeComponentModel.java:285)
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.getCompositeComponentModel(JsfIndex.java:168)
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.getCompositeComponentModel(JsfIndex.java:148)
   at org.netbeans.modules.web.jsf.editor.facelets.CompositeComponentLibrary$CCTldLibrary.init(CompositeComponentLibrary.java:171)
   at org.netbeans.modules.web.jsf.editor.facelets.CompositeComponentLibrary$CCTldLibrary.<init>(CompositeComponentLibrary.java:153)
Comment 1 _Anton_ 2010-04-30 12:58:22 UTC
Created attachment 98327 [details]
stacktrace
Comment 2 Marek Fukala 2010-05-05 14:40:09 UTC
fixed in web-main#ace809ae732b
Comment 3 Quality Engineering 2010-05-10 09:27:32 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 4 Marek Fukala 2010-12-09 14:42:10 UTC
*** Bug 188599 has been marked as a duplicate of this bug. ***