mirror of https://github.com/apache/maven.git
PR: MNG-281
show id if name is null in reactor git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163951 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
91467d5de3
commit
8ace38fbce
|
@ -367,7 +367,15 @@ public class MavenProject
|
|||
|
||||
public String getName()
|
||||
{
|
||||
return model.getName();
|
||||
// TODO: this should not be allowed to be null.
|
||||
if ( model.getName() != null )
|
||||
{
|
||||
return model.getName();
|
||||
}
|
||||
else
|
||||
{
|
||||
return getId();
|
||||
}
|
||||
}
|
||||
|
||||
public void setVersion( String version )
|
||||
|
|
Loading…
Reference in New Issue