From ed1ad8229a9e73d1d83fb4adc0fdcf966bfb7d77 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Tue, 1 Jul 2014 18:06:05 +0200 Subject: [PATCH] fix quality flaws --- .../src/main/java/org/sonar/server/rule/index/RuleIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java index 15f2926ee21..e2141f765e1 100644 --- a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java +++ b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java @@ -176,7 +176,7 @@ public class RuleIndex extends BaseIndex { // No contextual query case String queryText = query.getQueryText(); - if (query.getQueryText() == null || query.getQueryText().isEmpty()) { + if (queryText == null || queryText.isEmpty()) { return QueryBuilders.matchAllQuery(); } -- 2.39.5