From 8ace38fbce3c0aeed8a47b06b003f0eb6e8a3240 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Fri, 15 Apr 2005 05:46:13 +0000 Subject: [PATCH] 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 --- .../java/org/apache/maven/project/MavenProject.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java index d08ffc8766..951b7f07a3 100644 --- a/maven-core/src/main/java/org/apache/maven/project/MavenProject.java +++ b/maven-core/src/main/java/org/apache/maven/project/MavenProject.java @@ -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 )