mirror of https://github.com/apache/maven.git
Fixing NPE.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@328898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58e96169a6
commit
51f23d93d9
|
@ -175,6 +175,8 @@ public class ProjectSorter
|
||||||
project.addProjectReference( extProject );
|
project.addProjectReference( extProject );
|
||||||
|
|
||||||
MavenProject extParent = extProject.getParent();
|
MavenProject extParent = extProject.getParent();
|
||||||
|
if ( extParent != null )
|
||||||
|
{
|
||||||
String parentId = ArtifactUtils.versionlessKey( extParent.getGroupId(), extParent.getArtifactId() );
|
String parentId = ArtifactUtils.versionlessKey( extParent.getGroupId(), extParent.getArtifactId() );
|
||||||
// Don't add edge from parent to extension if a reverse edge already exists
|
// Don't add edge from parent to extension if a reverse edge already exists
|
||||||
if ( !dag.hasEdge( extensionId, id ) || !parentId.equals( id ) )
|
if ( !dag.hasEdge( extensionId, id ) || !parentId.equals( id ) )
|
||||||
|
@ -182,6 +184,7 @@ public class ProjectSorter
|
||||||
dag.addEdge( id, extensionId );
|
dag.addEdge( id, extensionId );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness.
|
// TODO: !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness.
|
||||||
public MavenProject getTopLevelProject()
|
public MavenProject getTopLevelProject()
|
||||||
|
|
Loading…
Reference in New Issue