]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5959 Protect against null boolean value
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 6 Jan 2015 10:45:44 +0000 (11:45 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 6 Jan 2015 12:44:52 +0000 (13:44 +0100)
server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java

index 21a9d72883b1f816a11886d025c1940361422294..0a4f530099eb35ac91b4286907e90393a9a6a3db 100644 (file)
@@ -272,7 +272,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> {
   }
 
   private void addComponentRelatedFilters(IssueQuery query, Map<String, FilterBuilder> filters) {
-    if (query.onComponentOnly()) {
+    if (BooleanUtils.isTrue(query.onComponentOnly())) {
       Set<String> allComponents = Sets.newHashSet();
       allComponents.addAll(query.projectUuids());
       allComponents.addAll(query.moduleUuids());