Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: SONARGRAPH-3.0.6
-
Fix Version/s: SONARGRAPH-3.1
-
Component/s: Sonargraph
-
Labels:None
-
Number of attachments :
Description
Projects that do not contain any packages cause the following exception:
Caused by: java.lang.IllegalArgumentException: Measure value can not be NaN
at org.sonar.api.measures.Measure.setValue(Measure.java:278)
at org.sonar.api.measures.Measure.setValue(Measure.java:250)
at org.sonar.api.measures.Measure.<init>(Measure.java:83)
at org.sonar.batch.DefaultDecoratorContext.saveMeasure(DefaultDecoratorContext.java:117)
at com.hello2morrow.sonarplugin.decorator.SonargraphDerivedMetricsDecorator.saveCyclicityMeasures(SonargraphDerivedMetricsDecorator.java:144)