Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: TECHDEBT-1.0.1
-
Fix Version/s: TECHDEBT-1.2
-
Component/s: Technical Debt
-
Labels:None
-
Environment:Red Hat Enterprise Linux 5.4 Tikanga, 32-bit, Hudson 1.386, Sonar 2.4.1, Technical Debt Plugin 1.0.1
-
Number of attachments :
Description
After:
- upgrading Sonar from 2.3.1 to 2.4.1
- AND upgrading Technical Debt Plugin 1.0 to 1.0.1
- AND setting the "Maximum complexity" setting to "METHOD=10"
The build breaks during Sonar project analysis with the following stacktrace:
Caused by: java.lang.NullPointerException
at org.sonar.plugins.technicaldebt.ComplexityDebtSensor.computeAndSaveDistributionForFiles(ComplexityDebtSensor.java:70)
at org.sonar.plugins.technicaldebt.ComplexityDebtSensor.analyse(ComplexityDebtSensor.java:63)
at org.sonar.batch.SensorsExecutor.execute(SensorsExecutor.java:58)
at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59)
Please see entire Maven build log + entire stacktrace in attachment.