aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-04-28 12:57:16 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-04-28 14:12:28 +0400
commit1ecf4a54440019d5f14bae01742ba6b3634006ba (patch)
treebf5e2a41cddcfeb7483e8b61957fd44ae42ba130
parent7dd514a1d598fe2d15613af864401aa11442667e (diff)
downloadsonarqube-1ecf4a54440019d5f14bae01742ba6b3634006ba.tar.gz
sonarqube-1ecf4a54440019d5f14bae01742ba6b3634006ba.zip
Set project description to empty string if property was not specified
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/ProjectBuilder.java2
1 files changed, 1 insertions, 1 deletions
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");
}