]> source.dussan.org Git - sonarqube.git/commitdiff
filters: fix bug when CRITERIA.VARIATION is null
authorsimonbrandhof <simon.brandhof@gmail.com>
Mon, 10 Jan 2011 13:21:21 +0000 (14:21 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Mon, 10 Jan 2011 13:21:21 +0000 (14:21 +0100)
sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java

index b6b025fab498b27e3f6a0900634ac02c4ec1f7bf..810b24d0c0365e6d3c8970f10a423901d0b523b5 100644 (file)
@@ -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) {