mirror of https://github.com/apache/maven.git
[MNG-3973] masked NPE when parent metadata cannot be found
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@732937 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe6d32bd6c
commit
8cd715bc5e
|
@ -106,7 +106,12 @@ public final class MavenDependencyProcessor
|
|||
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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue