[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:
Oleg Gusakov 2009-01-09 06:09:09 +00:00
parent fe6d32bd6c
commit 8cd715bc5e
1 changed files with 6 additions and 1 deletions

View File

@ -106,7 +106,12 @@ public List<ArtifactBasicMetadata> getDependencies( ArtifactBasicMetadata bmd, M
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 )
{