continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r446813 - /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
Date Sat, 16 Sep 2006 02:51:01 GMT
Author: carlos
Date: Fri Sep 15 19:51:00 2006
New Revision: 446813

URL: http://svn.apache.org/viewvc?view=rev&rev=446813
Log:
[CONTINUUM-916] Error trying to edit a previously added schedule without year

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java?view=diff&rev=446813&r1=446812&r2=446813
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
Fri Sep 15 19:51:00 2006
@@ -83,7 +83,10 @@
             dayOfMonth = cronEx[3];
             month = cronEx[4];
             dayOfWeek = cronEx[5];
-            year = cronEx[6];
+            if ( cronEx.length > 6 )
+            {
+                year = cronEx[6];
+            }
 
             description = schedule.getDescription();
             name = schedule.getName();



Mime
View raw message