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 172615 - StringIndexOutOfBoundsException: String index out of range: -9
Summary: StringIndexOutOfBoundsException: String index out of range: -9
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL: http://statistics.netbeans.org/except...
Keywords:
: 172614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-20 00:26 UTC by Jesse Glick
Modified: 2009-09-21 08:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158811


Attachments
stacktrace (6.04 KB, text/plain)
2009-09-20 00:26 UTC, Jesse Glick
Details
stacktrace (5.97 KB, text/plain)
2009-09-20 03:12 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-09-20 00:26:47 UTC
Build: NetBeans IDE Dev (Build 090918)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.28-15-generic, i386

User Comments:
jglick: Had modified a file in contrib, getting diff on it.



Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -9
        at java.lang.String.substring(String.java:1937)
        at java.lang.String.substring(String.java:1904)
        at org.netbeans.modules.mercurial.util.HgUtils.isIgnored(HgUtils.java:474)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.checkForIgnoredFile(FileStatusCacheNewGeneration.java:134)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.getCachedStatus(FileStatusCacheNewGeneration.java:263)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.updateParentInformation(FileStatusCacheNewGeneration.java:488)
Comment 1 Jesse Glick 2009-09-20 00:26:51 UTC
Created attachment 87966 [details]
stacktrace
Comment 2 Michel Graciano 2009-09-20 03:12:51 UTC
Build: NetBeans IDE Dev (Build 200909190201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
Changed an contrib project file.

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -9
        at java.lang.String.substring(String.java:1937)
        at java.lang.String.substring(String.java:1904)
        at org.netbeans.modules.mercurial.util.HgUtils.isIgnored(HgUtils.java:474)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.checkForIgnoredFile(FileStatusCacheNewGeneration.java:134)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.getCachedStatus(FileStatusCacheNewGeneration.java:263)
        at org.netbeans.modules.mercurial.FileStatusCacheNewGeneration.updateParentInformation(FileStatusCacheNewGeneration.java:488)
Comment 3 Michel Graciano 2009-09-20 03:12:54 UTC
Created attachment 87969 [details]
stacktrace
Comment 4 Ondrej Vrabec 2009-09-20 09:16:40 UTC
*** Issue 172614 has been marked as a duplicate of this issue. ***
Comment 5 Ondrej Vrabec 2009-09-21 08:02:38 UTC
Should be fixed in cdev #5550f6fa0523