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

C# plugins make analysis on java projects impossible

    Details

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

      Description

      Bug reported by Patrick Schwager
      On a multi module java project, when the C# plugins are deployed, an exception is raised in the CoverageDecorator class :

      Caused by: java.lang.NullPointerException
      at org.sonar.plugins.csharp.gallio.CoverageDecorator.shouldExecuteOnProject(CoverageDecorator.java:63)
      at org.sonar.api.batch.BatchExtensionDictionnary.shouldKeep(BatchExtensionDictionnary.java:115)
      at org.sonar.api.batch.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:105)
      at org.sonar.api.batch.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:63)
      at org.sonar.batch.DecoratorsSelector.select(DecoratorsSelector.java:40)
      at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:53)
      at org.sonar.batch.phases.Phases.execute(Phases.java:94)
      at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:145)

        Activity

        Hide
        Alexandre Victoor added a comment - - edited

        A check on sonar.language (=="cs") is missing done too late

        Show
        Alexandre Victoor added a comment - - edited A check on sonar.language (=="cs") is missing done too late
        Hide
        Alexandre Victoor added a comment - - edited

        fix committed

        Show
        Alexandre Victoor added a comment - - edited fix committed
        Hide
        Fabrice Bellingard added a comment -

        Successfully tested.

        Show
        Fabrice Bellingard added a comment - Successfully tested.

          People

          • Assignee:
            Alexandre Victoor
            Reporter:
            Alexandre Victoor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: