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

Fix for NPE in CCUCM Plugin (case 14958)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A null check needs to be wrapped around CheckoutTask.java:207.

      if (buildProject.equals(""))

      { buildProject = null; }

      Should be:

      if ((buildProject != null) && buildProject.equals("")) { buildProject = null; }

      I was able to cause this NPE by using Job DSL and not entering a value for buildProject (or including buildProject()). This caused config.xml to not have an entry for buildProject and caused this variable to be null at this point.

      I was able to get past this by specifying buildProject("") in my Job DSL script. It seems like the code should be made more robust here to handle this case better.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            praqma Praqma Support
            Reporter:
            w60001 Christopher Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: