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

Getting NPE for scan jobs, build history timestamps are Dec 31, 1969

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: checkmarx-plugin
    • Labels:
      None
    • Environment:
      checkmarx-plugin 8.1.0-1
      jenkins 2.8
    • Similar Issues:

      Description

      Appears when listing the build history and trying to create the trend graph.

      I consistently get NPEs in the logs from the CxScanResult.java class, whenever the "owner" variable is referenced. Please ensure the owner object is NOT null in the code:

      public final AbstractBuild<?, ?> owner;

      Example:
      Caused by: java.lang.NullPointerException
      at com.checkmarx.jenkins.CxScanResult.getPreviousResult(CxScanResult.java:225)
      at com.checkmarx.jenkins.CxProjectResult.buildDataSet(CxProjectResult.java:176)
      at com.checkmarx.jenkins.CxProjectResult.doGraph(CxProjectResult.java:131)

      Another side affect is all of the buids are listed as failed with timestamp Dec 31, 1969, even though the scan was successful in the console log.

        Attachments

          Activity

            People

            Assignee:
            checkmarxsupport Checkmarx Support
            Reporter:
            gkilleen Gerald Killeen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: