diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-08-13 14:36:10 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-08-13 14:36:17 +0200 |
commit | 80346c2d8aaff33baf91f94817d9f22d09d94c6d (patch) | |
tree | 78a457f43b11c400985133fd8dda21b8ea6df914 /sonar-batch | |
parent | c31f7f2abf3e622b88e557ba8bf6a425082cd2b8 (diff) | |
download | sonarqube-80346c2d8aaff33baf91f94817d9f22d09d94c6d.tar.gz sonarqube-80346c2d8aaff33baf91f94817d9f22d09d94c6d.zip |
Fix quality flaw
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java b/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java index 41b2af1fafa..35672b85d2b 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java +++ b/sonar-batch/src/main/java/org/sonar/batch/debt/SqaleRatingDecorator.java @@ -122,8 +122,9 @@ public final class SqaleRatingDecorator implements Decorator { } double sum = 0d; for (Measure measure : measures) { - if (measure.getData() != null) { - sum += Double.parseDouble(measure.getData()); + String data = measure.getData(); + if (data != null) { + sum += Double.parseDouble(data); } } return sum; |