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

Scanner fails with NullPointerException when importing issues from external report

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: Issues, Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Error raised by Julien Herr on the community forum

      15:19:51.893 ERROR: Error during SonarQube Scanner execution
      java.lang.NullPointerException
      	at org.sonar.scanner.externalissue.ExternalIssueImporter.fillLocation(ExternalIssueImporter.java:122)
      	at org.sonar.scanner.externalissue.ExternalIssueImporter.importIssue(ExternalIssueImporter.java:81)
      	at org.sonar.scanner.externalissue.ExternalIssueImporter.execute(ExternalIssueImporter.java:57)
      	at org.sonar.scanner.externalissue.ExternalIssuesImportSensor.execute(ExternalIssuesImportSensor.java:74)
      	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
      	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
      	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
      	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
      	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
      	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
      	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
      	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
      	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:408)
      	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:403)
      	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:360)
      	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
      	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
      	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:126)
      	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
      	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
      	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73)
      	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
      	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      	at com.sun.proxy.$Proxy0.execute(Unknown Source)
      	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)
      	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)
      	at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
      	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
      	at org.sonarsource.scanner.cli.Main.main(Main.java:61)

        Attachments

          Activity

            People

            • Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: