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 142970 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XAM (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sonali Kochar
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 21:36 UTC by Ivan Sidorkin
Modified: 2008-09-02 14:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 86871


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2008-08-05 21:36:28 UTC
during creating external XML schema document
from local file
path was pasted from clipboard

Build: NetBeans IDE Dev (Build 080805)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86
User comments: 
STACKTRACE: (first 10 lines)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1938)
        at org.netbeans.modules.xml.retriever.impl.RetrieverEngineImpl.pullRecursively(RetrieverEngineImpl.java:173)
        at org.netbeans.modules.xml.retriever.impl.RetrieverEngineImpl.run(RetrieverEngineImpl.java:155)
        at java.lang.Thread.run(Thread.java:619)
Comment 1 Sonali Kochar 2008-08-05 21:48:13 UTC
Would it possible for you to paste the path into the bug that was copied from the clipboard?

thx
Comment 2 Ivan Sidorkin 2008-08-05 21:54:58 UTC
looks like it not very important. just paste any path and do not use Browse button

first time it was very long path...
now I can reproduce it with just "C:\SimpleXMLSchema.xsd"
Comment 3 Sonali Kochar 2008-08-06 17:16:45 UTC
changeset d071ac47caca in main
details: http://hg.netbeans.org/main?cmd=changeset;node=d071ac47caca
Comment 4 Quality Engineering 2008-08-07 16:35:43 UTC
Integrated into 'main-golden', available in build *200808071401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/d071ac47caca
User: sonali@netbeans.org
Log: Fix for Issue#142970  StringIndexOutOfBoundsException: String index out of range: -1
Comment 5 Ivan Sidorkin 2008-09-02 14:56:19 UTC
verified with NetBeans IDE Dev (Build 200809020201)