diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 18:06:05 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-01 18:14:12 +0200 |
commit | ed1ad8229a9e73d1d83fb4adc0fdcf966bfb7d77 (patch) | |
tree | e4ac94784343ec9136c6844044733b0e8f55c793 | |
parent | 75e684f8b1fbbe6112a31d93e14dcab68130014b (diff) | |
download | sonarqube-ed1ad8229a9e73d1d83fb4adc0fdcf966bfb7d77.tar.gz sonarqube-ed1ad8229a9e73d1d83fb4adc0fdcf966bfb7d77.zip |
fix quality flaws
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<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(); } |