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

Re: Fixed error in SVN Resource History view

From: Mark Phippard <markp_at_softlanding.com>
Date: 2005-11-15 19:40:00 CET

Ian McDougall <imcdougall@apple.com> wrote on 11/15/2005 01:33:45 PM:

> 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. I will look into it and likely commit it.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Wed Nov 16 05:40:00 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.