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 215896 - StringIndexOutOfBoundsException: String index out of range: 10
Summary: StringIndexOutOfBoundsException: String index out of range: 10
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-24 18:10 UTC by Tomas Stupka
Modified: 2012-09-10 13:52 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187805


Attachments
stacktrace (4.83 KB, text/plain)
2012-07-24 18:10 UTC, Tomas Stupka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2012-07-24 18:10:30 UTC
Build: NetBeans IDE Dev (Build 20120721-5d5888b04721)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.8-b03-424, Java(TM) SE Runtime Environment, 1.6.0_33-b03-424-10M3720
OS: Mac OS X

User Comments:
markiewb: Invoked "Show Annotations" for a git-versioned file




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 10
   at java.lang.String.substring(String.java:1934)
   at org.netbeans.modules.git.ui.blame.AnnotateLine.getAuthorShort(AnnotateLine.java:169)
   at org.netbeans.modules.git.ui.blame.AnnotateLine.<init>(AnnotateLine.java:88)
   at org.netbeans.modules.git.ui.blame.AnnotateAction.toAnnotateLines(AnnotateAction.java:169)
   at org.netbeans.modules.git.ui.blame.AnnotateAction.access$000(AnnotateAction.java:74)
   at org.netbeans.modules.git.ui.blame.AnnotateAction$1.perform(AnnotateAction.java:153)
Comment 1 Tomas Stupka 2012-07-24 18:10:35 UTC
Created attachment 122312 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-07-25 12:52:02 UTC
should go to 7.2 in a patch because Show Annotations is completely unusable for repositories where users do not have their email addresses specified - probably all eclipse repositories for example
Comment 3 Ondrej Vrabec 2012-07-25 12:53:14 UTC
fix: http://hg.netbeans.org/core-main/rev/5d550e369cb9
Comment 4 Quality Engineering 2012-07-26 02:18:28 UTC
Integrated into 'main-golden', will be available in build *201207260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5d550e369cb9
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #215896 - StringIndexOutOfBoundsException: String index out of range: 10
Comment 5 Stepan Zebra 2012-08-28 11:12:13 UTC
verified in trunk, please integrate
Comment 6 Ondrej Vrabec 2012-08-28 11:22:17 UTC
http://hg.netbeans.org/releases/rev/eff7c3f60cdf
Comment 7 Quality Engineering 2012-09-01 11:06:29 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/eff7c3f60cdf
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #215896 - StringIndexOutOfBoundsException: String index out of range: 10
(transplanted from 5d550e369cb9baf60989c50e2abd71ce9a5f48ea)
Comment 8 Stepan Zebra 2012-09-10 13:52:53 UTC
verified in 7.2.1