From: Evgeny Mandrikov Date: Thu, 28 Apr 2011 08:57:16 +0000 (+0400) Subject: Set project description to empty string if property was not specified X-Git-Tag: 2.8~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ecf4a54440019d5f14bae01742ba6b3634006ba;p=sonarqube.git Set project description to empty string if property was not specified --- diff --git a/sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java b/sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java index c652ce8a76e..5d3fba87331 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java +++ b/sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java @@ -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"); }