]> source.dussan.org Git - sonarqube.git/commitdiff
Set project description to empty string if property was not specified
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Apr 2011 08:57:16 +0000 (12:57 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Apr 2011 10:12:28 +0000 (14:12 +0400)
sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java

index c652ce8a76e7f8553a915012384d69e1feeb6237..5d3fba8733129cbacf4bb37daf05009109e6b67a 100644 (file)
@@ -47,7 +47,7 @@ public class ProjectBuilder {
   public Project create(ProjectDefinition project) {
     Configuration configuration = getStartupConfiguration(project);
     return new Project(loadProjectKey(project), loadProjectBranch(configuration), loadProjectName(project))
-        .setDescription(project.getProperties().getProperty(CoreProperties.PROJECT_DESCRIPTION_PROPERTY))
+        .setDescription(project.getProperties().getProperty(CoreProperties.PROJECT_DESCRIPTION_PROPERTY, ""))
         .setPackaging("jar");
   }