Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56038

NPE in SonarQubePointGenerator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • influxdb-plugin
    • None
    • 1.20.4

      We receive NPEs originating from the SonarQubePointGenerator lately:

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:186)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:77)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:65)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      and

      java.lang.NullPointerException
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectName(SonarQubePointGenerator.java:187)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.setSonarDetails(SonarQubePointGenerator.java:78)
       at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:66)
       at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:234)
       at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:357)

      Looks like the issue is coming from this line: https://github.com/jenkinsci/influxdb-plugin/blob/3af3be64df162c190374759e7947471432e7a8b5/src/main/java/jenkinsci/plugins/influxdb/generators/SonarQubePointGenerator.java#L186

       

      Error is occurring with v1.20.2 and v1.20.3.

       

            aleksisimell Aleksi Simell
            ennef Christopher Fenner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: