]> source.dussan.org Git - sonarqube.git/commitdiff
ComponentTreeQuery: since sortFields can't be null, enforce it
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 29 Jun 2016 15:55:02 +0000 (17:55 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 4 Jul 2016 13:20:30 +0000 (15:20 +0200)
sonar-db/src/main/java/org/sonar/db/component/ComponentTreeQuery.java

index 5c0cae54a603b69a83810b4fb4041c239e555367..b987ff479281b386a058ba32e3302ad98a9bc98d 100644 (file)
@@ -124,6 +124,7 @@ public class ComponentTreeQuery {
 
     public ComponentTreeQuery build() {
       requireNonNull(baseUuid);
+      requireNonNull(sortFields);
       return new ComponentTreeQuery(this);
     }