From 1ecf4a54440019d5f14bae01742ba6b3634006ba Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 28 Apr 2011 12:57:16 +0400 Subject: [PATCH] Set project description to empty string if property was not specified --- sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5