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 197110 - 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:
Depends on:
Blocks:
 
Reported: 2011-03-26 13:01 UTC by jyeary
Modified: 2011-03-28 09:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177945


Attachments
stacktrace (3.25 KB, text/plain)
2011-03-26 13:01 UTC, jyeary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jyeary 2011-03-26 13:01:47 UTC
This bug was originally marked as duplicate of bug 185311, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.9.1 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

User Comments:
GUEST: developing jsf application.

GUEST: Editing facelets composite

jyeary: Working with a composite component by adding it to a page.

GUEST: try to autocomplite in the composite component control.




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:288)
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.getCompositeComponentModel(JsfIndex.java:171)
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.getCompositeComponentModel(JsfIndex.java:151)
   at org.netbeans.modules.web.jsf.editor.facelets.CompositeComponentLibrary$CCTldLibrary.init(CompositeComponentLibrary.java:174)
   at org.netbeans.modules.web.jsf.editor.facelets.CompositeComponentLibrary$CCTldLibrary.<init>(CompositeComponentLibrary.java:156)
Comment 1 jyeary 2011-03-26 13:01:51 UTC
Created attachment 107295 [details]
stacktrace
Comment 2 Marek Fukala 2011-03-28 09:40:35 UTC
already fixed