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.
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)
Created attachment 158619 [details] stacktrace
fixed in jet-main #a8756e9db1c8
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