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 258117 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 16:05 UTC by everflux
Modified: 2016-07-07 01:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222670


Attachments
stacktrace (3.52 KB, text/plain)
2016-02-23 16:05 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2016-02-23 16:05:36 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Linux

User Comments:
everflux: removed site root and source folder, restarted netbeans, tried to add site root folder for current directory (".")




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:210)
   at java.lang.StringBuilder.charAt(StringBuilder.java:76)
   at org.netbeans.spi.project.support.ant.PropertyUtils.relativizeFile(PropertyUtils.java:447)
   at org.netbeans.modules.web.clientproject.ant.AntServices.relativizeFile(AntServices.java:111)
   at org.netbeans.modules.web.clientproject.ui.customizer.SourcesPanel.browseFolder(SourcesPanel.java:277)
   at org.netbeans.modules.web.clientproject.ui.customizer.SourcesPanel.siteRootFolderBrowseButtonActionPerformed(SourcesPanel.java:514)
Comment 1 everflux 2016-02-23 16:05:38 UTC
Created attachment 158619 [details]
stacktrace
Comment 2 Tomas Stupka 2016-07-05 16:12:09 UTC
fixed in jet-main #a8756e9db1c8
Comment 3 Quality Engineering 2016-07-07 01:52:05 UTC
Integrated into 'main-silver', will be available in build *201607070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a8756e9db1c8
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #258117 - StringIndexOutOfBoundsException: String index out of range: -1