maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ogusa...@apache.org
Subject svn commit: r732937 - /maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
Date Fri, 09 Jan 2009 06:09:09 GMT
Author: ogusakov
Date: Thu Jan  8 22:09:09 2009
New Revision: 732937

URL: http://svn.apache.org/viewvc?rev=732937&view=rev
Log:
[MNG-3973] masked NPE when parent metadata cannot be found

Modified:
    maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java

Modified: maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java?rev=732937&r1=732936&r2=732937&view=diff
==============================================================================
--- maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
(original)
+++ maven/components/trunk/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDependencyProcessor.java
Thu Jan  8 22:09:09 2009
@@ -106,7 +106,12 @@
                 domainModels.add( new MavenDomainModel( transformProfiles( mc.getProperties()
) ) );
             }
 
-            domainModels.addAll( getParentsOfDomainModel( domainModel, mdReader ) );
+            List<DomainModel> parentModels = getParentsOfDomainModel( domainModel,
mdReader );
+            
+            if( parentModels == null )
+                throw new DependencyProcessorException( "cannor read parent for " + bmd.getGAV()
);
+            
+            domainModels.addAll( parentModels );
         }
         catch ( IOException e )
         {



Mime
View raw message