continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447746 - /maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
Date Tue, 19 Sep 2006 05:31:56 GMT
Author: carlos
Date: Mon Sep 18 22:31:56 2006
New Revision: 447746

URL: http://svn.apache.org/viewvc?view=rev&rev=447746
Log:
Add null checks

Modified:
    maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java

Modified: maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java?view=diff&rev=447746&r1=447745&r2=447746
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
Mon Sep 18 22:31:56 2006
@@ -165,8 +165,10 @@
         throws ContinuumException
     {
         Project project = super.getProjectWithAllDetails( projectId );
-        ProjectGroup projectGroup = project.getProjectGroup();
-        project.setProjectGroup( getAclEventHandler().setPermissions( projectGroup ) );
+        if ( ( project != null ) && ( project.getProjectGroup() != null ) )
+        {
+            project.setProjectGroup( getAclEventHandler().setPermissions( project.getProjectGroup()
) );
+        }
         return project;
     }
 



Mime
View raw message