[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Fixed error in SVN Resource History view

From: Ian McDougall <imcdougall_at_apple.com>
Date: 2005-11-15 19:33:45 CET

We've triggered an error when looking at the 'SVN Resource History'
and you select a revision that has a comment starting with a URL.
so a revision comment with a comment like "bug://foo/bar is the
issue" will trigger:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1438)
        at
org.tigris.subversion.subclipse.ui.settings.ProjectProperties.getUrls
(ProjectProperties.java:158)
        at org.tigris.subversion.subclipse.ui.history.HistoryView
$30.selectionChanged(HistoryView.java:887)

the fix is:
org.tigris.subversion.subclipse.ui.settings.ProjectProperties:
OLD: line 148: int start = i;
FIX: line 148: int start = (i < 0) ? 0 : i;

Sorry in advance if this is an inappropriate place for this.

thanks.
_ _
Ian
Received on Wed Nov 16 05:33:45 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.