continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsm...@apache.org
Subject svn commit: r690611 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigureAppearanceAction.java
Date Sat, 30 Aug 2008 23:26:35 GMT
Author: wsmoak
Date: Sat Aug 30 16:26:35 2008
New Revision: 690611

URL: http://svn.apache.org/viewvc?rev=690611&view=rev
Log:
CONTINUUM-1863 Guard against NPE when clicking Appearance menu button
merged r690610 from 1.2.x branch

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

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigureAppearanceAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigureAppearanceAction.java?rev=690611&r1=690610&r2=690611&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigureAppearanceAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/admin/ConfigureAppearanceAction.java
Sat Aug 30 16:26:35 2008
@@ -138,13 +138,16 @@
             for ( String profileId : profileIds )
             {
                 Profile profile = profilesAsMap.get( profileId );
-                List<Repository> repos = profile.getRepositories();
-                if ( repos != null && !repos.isEmpty() )
+                if (profile != null)
                 {
-                    for ( Repository repo : repos )
+                    List<Repository> repos = profile.getRepositories();
+                    if ( repos != null && !repos.isEmpty() )
                     {
+                        for ( Repository repo : repos )
+                        {
                         remoteRepositories.add( artifactRepositoryFactory.createArtifactRepository(
repo.getId(), repo
                             .getUrl(), layout, null, null ) );
+                        }
                     }
                 }
             }



Mime
View raw message