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

Failure to create reports in issues mode when using branches

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.3, 6.3.1
    • Fix Version/s: 6.4
    • Component/s: Scanner
    • Labels:
      None

      Description

      In some situations, the scanners fail to generate the JSON or HTML report in the issues mode.
      The error happens when using branches, and when there are issues that are matched with issues in SonarQube.
      Here is the stack trace of the resulting error:

      java.lang.NullPointerException
      at org.sonar.scanner.scan.report.JSONReport.getModule(JSONReport.java:172)
      at org.sonar.scanner.scan.report.JSONReport.writeJsonIssues(JSONReport.java:139)
      at org.sonar.scanner.scan.report.JSONReport.writeJson(JSONReport.java:123)
      at org.sonar.scanner.scan.report.JSONReport.exportResults(JSONReport.java:109)
      at org.sonar.scanner.scan.report.JSONReport.execute(JSONReport.java:100)
      

        Attachments

          Activity

            People

            • Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              duarte.meneses Duarte Meneses
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: