aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-10-07 18:23:55 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-10-07 18:23:55 +0200
commitf70b46b215eca6c1f6ab38b9f3cfb5d37db4ba51 (patch)
treee6852a951ba2526098f8ad89a3198b1375ca7b0b /plugins
parentcf00abaca3249e32e19d53287c549f927c944152 (diff)
downloadsonarqube-f70b46b215eca6c1f6ab38b9f3cfb5d37db4ba51.tar.gz
sonarqube-f70b46b215eca6c1f6ab38b9f3cfb5d37db4ba51.zip
Fix quality flaws
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
index 90ea63bd8e7..d8c9bd6936a 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/issue/IssueTrackingDecorator.java
@@ -167,7 +167,10 @@ public class IssueTrackingDecorator implements Decorator {
updater.setPastLine(issue, ref.getLine());
updater.setPastMessage(issue, ref.getMessage(), changeContext);
updater.setPastEffortToFix(issue, ref.getEffortToFix(), changeContext);
- updater.setPastTechnicalDebt(issue, TechnicalDebt.fromLong(ref.getTechnicalDebt()), changeContext);
+ Long technicalDebt = ref.getTechnicalDebt();
+ if (technicalDebt != null) {
+ updater.setPastTechnicalDebt(issue, TechnicalDebt.fromLong(technicalDebt), changeContext);
+ }
}
}