From 2647d0f4b78c682da31b5ccfd17107577f9eeecb Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Mon, 10 Jan 2011 14:21:21 +0100 Subject: [PATCH] filters: fix bug when CRITERIA.VARIATION is null --- .../main/java/org/sonar/server/filters/MeasureCriterion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java b/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java index b6b025fab49..810b24d0c03 100644 --- a/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java +++ b/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java @@ -60,8 +60,8 @@ public class MeasureCriterion { this.value = value; } - public Boolean isVariation() { - return variation; + public boolean isVariation() { + return variation==Boolean.TRUE; } public MeasureCriterion setVariation(Boolean b) { -- 2.39.5