continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r682547 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java
Date Tue, 05 Aug 2008 00:11:34 GMT
Author: olamy
Date: Mon Aug  4 17:11:34 2008
New Revision: 682547

URL: http://svn.apache.org/viewvc?rev=682547&view=rev
Log:
[CONTINUUM-1841] Error when adding project group with null values
Submitted by Maria Catherine Tan


Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java?rev=682547&r1=682546&r2=682547&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/AddProjectGroupAction.java
Mon Aug  4 17:11:34 2008
@@ -48,6 +48,14 @@
     
     private List<LocalRepository> repositories;
 
+    public void prepare()
+        throws Exception
+    {
+        super.prepare();
+        
+        repositories = getContinuum().getRepositoryService().getAllLocalRepositories();
+    }
+    
     public void validate()
     {
         clearErrorsAndMessages();
@@ -152,8 +160,6 @@
         {
             checkAddProjectGroupAuthorization();
 
-            repositories = getContinuum().getRepositoryService().getAllLocalRepositories();
-            
             return INPUT;
         }
         catch ( AuthorizationRequiredException authzE )



Mime
View raw message