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 253241 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-29 15:39 UTC by Alexander Simon
Modified: 2015-07-09 01:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208972


Attachments
stacktrace (5.63 KB, text/plain)
2015-06-29 15:39 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-06-29 15:39:44 UTC
Build: NetBeans IDE Dev (Build 20150629-869e82459cad)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: SunOS

User Comments:
GUEST: StringIndexOutOfBoundsException: String index out of range: -1

alexvsimon: status on symbolic link folder




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1919)
   at org.netbeans.modules.mercurial.util.HgUtils.getRelativePath(HgUtils.java:1173)
   at org.netbeans.modules.mercurial.ui.status.SyncFileNode$PathProperty.<init>(SyncFileNode.java:216)
   at org.netbeans.modules.mercurial.ui.status.SyncFileNode.initProperties(SyncFileNode.java:155)
   at org.netbeans.modules.mercurial.ui.status.SyncFileNode.<init>(SyncFileNode.java:98)
   at org.netbeans.modules.mercurial.ui.status.SyncFileNode.<init>(SyncFileNode.java:89)
Comment 1 Alexander Simon 2015-06-29 15:39:46 UTC
Created attachment 154428 [details]
stacktrace
Comment 2 Alexander Simon 2015-06-29 15:48:29 UTC
Steps to reproduce:
- add symbolic link in root folder:
#ln -s . sparc
- invoke on sparc folder HG status
Comment 3 Ondrej Vrabec 2015-07-07 14:30:28 UTC
Fix: core-main #d01495409738
Changeset: d01495409738
Message:
Comment 4 Quality Engineering 2015-07-09 01:15:45 UTC
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d01495409738
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #253241 - StringIndexOutOfBoundsException: String index out of range: -1