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

NPE occured in AbstractItem.resolveForCLI when AbstractProject.findNearest() return null

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      Problematic code in method AbstractItem.resolveForCLI():

      throw new CmdLineException(null,Messages.AbstractItem_NoSuchJobExists(name,AbstractProject.findNearest(name).getFullName()));

      NPE occurred when AbstractProject.findNearest(name) returns null.

          [JENKINS-30629] NPE occured in AbstractItem.resolveForCLI when AbstractProject.findNearest() return null

          PR sent.

          Pavel Janoušek added a comment - PR sent.

          Code changed in jenkins
          User: Ing. Pavel Janousek
          Path:
          core/src/main/java/hudson/model/AbstractItem.java
          core/src/main/resources/hudson/model/Messages.properties
          http://jenkins-ci.org/commit/jenkins/3fa9ce5845727edec8181d7f1523340a9fa25764
          Log:
          JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI()

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ing. Pavel Janousek Path: core/src/main/java/hudson/model/AbstractItem.java core/src/main/resources/hudson/model/Messages.properties http://jenkins-ci.org/commit/jenkins/3fa9ce5845727edec8181d7f1523340a9fa25764 Log: JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI()

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          core/src/main/java/hudson/model/AbstractItem.java
          core/src/main/resources/hudson/model/Messages.properties
          http://jenkins-ci.org/commit/jenkins/7fb4696a6f8725211a4011f3a007f2facaf08947
          Log:
          Merge pull request #1841 from pjanouse/JENKINS-30629

          JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI()

          Compare: https://github.com/jenkinsci/jenkins/compare/7e072b6abc0b...7fb4696a6f87

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/AbstractItem.java core/src/main/resources/hudson/model/Messages.properties http://jenkins-ci.org/commit/jenkins/7fb4696a6f8725211a4011f3a007f2facaf08947 Log: Merge pull request #1841 from pjanouse/ JENKINS-30629 JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI() Compare: https://github.com/jenkinsci/jenkins/compare/7e072b6abc0b...7fb4696a6f87

          dogfood added a comment -

          Integrated in jenkins_main_trunk #4295
          JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI() (Revision 3fa9ce5845727edec8181d7f1523340a9fa25764)

          Result = SUCCESS
          pjanouse : 3fa9ce5845727edec8181d7f1523340a9fa25764
          Files :

          • core/src/main/resources/hudson/model/Messages.properties
          • core/src/main/java/hudson/model/AbstractItem.java

          dogfood added a comment - Integrated in jenkins_main_trunk #4295 JENKINS-30629 Fixed NPE in AbstractItem.resolveForCLI() (Revision 3fa9ce5845727edec8181d7f1523340a9fa25764) Result = SUCCESS pjanouse : 3fa9ce5845727edec8181d7f1523340a9fa25764 Files : core/src/main/resources/hudson/model/Messages.properties core/src/main/java/hudson/model/AbstractItem.java

            pajasoft Pavel Janoušek
            pajasoft Pavel Janoušek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: