Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-14 15:50:30 -0400
committerMichael Valenta2002-06-14 15:50:30 -0400
commit4d3a2123ec5f4806d6d44c0c30c4479a38e1579e (patch)
treee6ad4602332b0a22ab080e2855df1fed8c45ed27
parent6d0fa5646e89d855e79e747fde7a53f6245d9abc (diff)
downloadeclipse.platform.team-FixFor19791.tar.gz
eclipse.platform.team-FixFor19791.tar.xz
eclipse.platform.team-FixFor19791.zip
*** empty log message ***FixFor19791
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java
index 6a38b97af..bf3ea739f 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java
@@ -45,10 +45,14 @@ public class CVSDateFormatter {
}
static public Date entryLineToDate(String text) throws ParseException {
- if (text.charAt(ENTRYLINE_TENS_DAY_OFFSET) == ' ') {
- StringBuffer buf = new StringBuffer(text);
- buf.setCharAt(ENTRYLINE_TENS_DAY_OFFSET, '0');
- text = buf.toString();
+ try {
+ if (text.charAt(ENTRYLINE_TENS_DAY_OFFSET) == ' ') {
+ StringBuffer buf = new StringBuffer(text);
+ buf.setCharAt(ENTRYLINE_TENS_DAY_OFFSET, '0');
+ text = buf.toString();
+ }
+ } catch (StringIndexOutOfBoundsException e) {
+ throw new ParseException(e.getMessage(), ENTRYLINE_TENS_DAY_OFFSET);
}
return entryLineFormat.parse(text);
}

Back to the top