SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2732

Sonargraph Plugin: NaN exception for projects without packages

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: SONARGRAPH-3.0.6
    • Fix Version/s: SONARGRAPH-3.1
    • Component/s: Sonargraph
    • Labels:
      None
    • Number of attachments :
      0

      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)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Ingmar Kellner
            Reporter:
            Ingmar Kellner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: