From d064ce1d68d6c9d672753a9574bbe4efac95422c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Wed, 29 Jun 2016 17:55:02 +0200 Subject: [PATCH] ComponentTreeQuery: since sortFields can't be null, enforce it --- .../src/main/java/org/sonar/db/component/ComponentTreeQuery.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-db/src/main/java/org/sonar/db/component/ComponentTreeQuery.java b/sonar-db/src/main/java/org/sonar/db/component/ComponentTreeQuery.java index 5c0cae54a60..b987ff47928 100644 --- a/sonar-db/src/main/java/org/sonar/db/component/ComponentTreeQuery.java +++ b/sonar-db/src/main/java/org/sonar/db/component/ComponentTreeQuery.java @@ -124,6 +124,7 @@ public class ComponentTreeQuery { public ComponentTreeQuery build() { requireNonNull(baseUuid); + requireNonNull(sortFields); return new ComponentTreeQuery(this); } -- 2.39.5