maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r929317 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
Date Tue, 30 Mar 2010 22:03:01 GMT
Author: bentmann
Date: Tue Mar 30 22:03:01 2010
New Revision: 929317

URL: http://svn.apache.org/viewvc?rev=929317&view=rev
Log:
o Fixed potential NPE

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java?rev=929317&r1=929316&r2=929317&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java
Tue Mar 30 22:03:01 2010
@@ -1062,7 +1062,7 @@ public class MavenProject
     {
         if ( artifacts == null )
         {
-            if ( artifactFilter == null )
+            if ( artifactFilter == null || resolvedArtifacts == null )
             {
                 artifacts = new LinkedHashSet<Artifact>();
             }



Mime
View raw message