]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 better error in api/rules/set_tags when param "tags" is missing
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 20 May 2014 21:46:29 +0000 (23:46 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 20 May 2014 21:46:29 +0000 (23:46 +0200)
sonar-server/src/main/java/org/sonar/server/rule2/ws/SetTagsAction.java

index c0b01cc1139552b1dc3ee0cdf0a5022b43470b42..a322356a8894ab3aae9d98d19e5cf89b5c0397c6 100644 (file)
@@ -59,7 +59,7 @@ public class SetTagsAction implements RequestHandler {
   @Override
   public void handle(Request request, Response response) {
     RuleKey key = RuleKey.parse(request.mandatoryParam("key"));
-    Set<String> tags = Sets.newHashSet(request.paramAsStrings("tags"));
+    Set<String> tags = Sets.newHashSet(request.mandatoryParamAsStrings("tags"));
     service.setTags(key, tags);
   }
 }