aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-10-18 10:51:04 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-10-18 17:01:46 +0200
commit93410000b4c8b70eb4c16cbc193fa9640f6e73b0 (patch)
treee5e30521834940d0649e69982de8fa5fc12874c4 /sonar-ws
parent0b6399084ba07c59a96d4a1d1e2cef253c768041 (diff)
downloadsonarqube-93410000b4c8b70eb4c16cbc193fa9640f6e73b0.tar.gz
sonarqube-93410000b4c8b70eb4c16cbc193fa9640f6e73b0.zip
SONAR-8287 Refactor project measures index and WS domain
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchProjectsRequest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchProjectsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchProjectsRequest.java
index c8ba9187cb5..b4f0d23f6e1 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchProjectsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchProjectsRequest.java
@@ -83,6 +83,9 @@ public class SearchProjectsRequest {
if (pageSize == null) {
pageSize = DEFAULT_PAGE_SIZE;
}
+ if (filter == null) {
+ filter = "";
+ }
checkArgument(pageSize <= MAX_PAGE_SIZE, "Page size must not be greater than %s", MAX_PAGE_SIZE);