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

NPE in EnvInjectAction#getEnvironment() when the build is not fully loaded

    Details

    • Similar Issues:

      Description

      It happens when getEnvironment() is being called from readResolve(). I occasionally deleted it during the FindBugs cleanup

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java
          http://jenkins-ci.org/commit/envinject-lib/cb7ba5af53a3f6dcd709ca39d1c547378092fc88
          Log:
          JENKINS-47574 - Be protective against null parents in readResolve()

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java http://jenkins-ci.org/commit/envinject-lib/cb7ba5af53a3f6dcd709ca39d1c547378092fc88 Log: JENKINS-47574 - Be protective against null parents in readResolve()
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java
          http://jenkins-ci.org/commit/envinject-lib/a5da0e1f1a87a35a9f7a30da841b68acb2af7a33
          Log:
          JENKINS-47574 - Fix the comparison logic

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java http://jenkins-ci.org/commit/envinject-lib/a5da0e1f1a87a35a9f7a30da841b68acb2af7a33 Log: JENKINS-47574 - Fix the comparison logic
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java
          http://jenkins-ci.org/commit/envinject-lib/7da8f74f5b9a4d45cb27d7f62256e196f9ae2e3a
          Log:
          Merge pull request #14 from oleg-nenashev/bug/JENKINS-47574

          JENKINS-47574 - Prevent NPE in EnvInjectAction#getEnvironment() when it's called in readResolve()

          Compare: https://github.com/jenkinsci/envinject-lib/compare/e2d0a75ae2c3...7da8f74f5b9a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/lib/envinject/EnvInjectAction.java http://jenkins-ci.org/commit/envinject-lib/7da8f74f5b9a4d45cb27d7f62256e196f9ae2e3a Log: Merge pull request #14 from oleg-nenashev/bug/ JENKINS-47574 JENKINS-47574 - Prevent NPE in EnvInjectAction#getEnvironment() when it's called in readResolve() Compare: https://github.com/jenkinsci/envinject-lib/compare/e2d0a75ae2c3...7da8f74f5b9a
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          pom.xml
          http://jenkins-ci.org/commit/envinject-api-plugin/3e16ce5885cd361b57a304b6e0a4272717eb0c7f
          Log:
          [JENKINS-47574, JENKINS-47167] - Update to EnvInject Lib 1.28

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: pom.xml http://jenkins-ci.org/commit/envinject-api-plugin/3e16ce5885cd361b57a304b6e0a4272717eb0c7f Log: [JENKINS-47574, JENKINS-47167] - Update to EnvInject Lib 1.28
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It has been released in EnvInject Lib 1.28 and EnvInject API 1.4

          Show
          oleg_nenashev Oleg Nenashev added a comment - It has been released in EnvInject Lib 1.28 and EnvInject API 1.4

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: