]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaws
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 16:06:05 +0000 (18:06 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 16:14:12 +0000 (18:14 +0200)
sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java

index 15f2926ee219a464f289ee52bf906bcf1d076421..e2141f765e119d53a1925b19a67ed3ecc03c79d4 100644 (file)
@@ -176,7 +176,7 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
 
     // No contextual query case
     String queryText = query.getQueryText();
-    if (query.getQueryText() == null || query.getQueryText().isEmpty()) {
+    if (queryText == null || queryText.isEmpty()) {
       return QueryBuilders.matchAllQuery();
     }