Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3873

When deleting a manual metric all relating manual measures MUST be deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Labels:
      None

      Description

      Otherwise if a manual measure is defined on this deleted metric :

      • it's no more possible to display the "Manual Measures" page at project level
      • when trying to analyse the project, the following exception is throw :
        Caused by: java.lang.NullPointerException
        	at org.sonar.api.measures.Measure.<init>(Measure.java:71)
        	at org.sonar.plugins.core.sensors.ManualMeasureDecorator.copy(ManualMeasureDecorator.java:59)
        	at org.sonar.plugins.core.sensors.ManualMeasureDecorator.decorate(ManualMeasureDecorator.java:53)
        	at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
        	... 37 more
        

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            freddy.mallet Freddy Mallet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: