aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-07-28 15:33:43 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-08-25 16:54:31 +0200
commit8eceec4c11715b83faf6a7bff745b3f5e383fd11 (patch)
tree88dfd1b8626269fdf1f9c1b74adc87a16f820a7d /sonar-batch-protocol/src
parentcbf0b7bdaa96aa15cdccb58fd8067cbc809c8e0b (diff)
downloadsonarqube-8eceec4c11715b83faf6a7bff745b3f5e383fd11.tar.gz
sonarqube-8eceec4c11715b83faf6a7bff745b3f5e383fd11.zip
SONAR-5417 Load project referentials using WS
Diffstat (limited to 'sonar-batch-protocol/src')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java
index 570fb3630e5..06109d82b11 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ProjectReferentials.java
@@ -24,6 +24,7 @@ import com.google.gson.Gson;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -39,7 +40,7 @@ public class ProjectReferentials {
private Map<String, Map<String, String>> settingsByModule = new HashMap<String, Map<String, String>>();
public Map<String, String> settings(String projectKey) {
- return settingsByModule.get(projectKey);
+ return settingsByModule.containsKey(projectKey) ? settingsByModule.get(projectKey) : Collections.<String, String>emptyMap();
}
public ProjectReferentials addSettings(String projectKey, Map<String, String> settings) {