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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • checkmarx-plugin
    • None
    • checkmarx-plugin 8.1.0-1
      jenkins 2.8

      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.

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

              Created:
              Updated:
              Resolved: