SonarQube C#
  1. SonarQube C#
  2. SONARCS-89

NPE on the Gallio CoverageDecorator

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      For some reason, some C# files that were analysed do not have the NLOC metric, which causes a NPE when decorating those files with unit test metrics.

      Fos instance:

      Caused by: java.lang.NullPointerException
      	at org.sonar.plugins.csharp.gallio.CoverageDecorator.decorate(CoverageDecorator.java:82)
      	at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:79)
      	... 23 more
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Fabrice Bellingard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: