NPE from EnvInjectJobProperty.reconfigure when lacking RUN_SCRIPTS

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      If you are a user lacking RUN_SCRIPTS permission, and have an EnvInjectJobProperty configured on a job, then unselect this option and try to resave the job, you get

      java.lang.NullPointerException
      	org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:127)
      	org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:25)
      	hudson.util.DescribableList.rebuild(DescribableList.java:171)
      	hudson.model.Job.doConfigSubmit(Job.java:1131)
      	hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:787)
      

      presumably since property == null.

            Assignee:
            Gregory Boissinot
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: