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

Instance doesn't start because of a NPE

    Details

    • Similar Issues:

      Description

      Build-pipeline is generating a "Null Pointer Exception" because params.getParameterDefinitionNames() is not checked if it is null in the class BuildForm.java

      if (params != null) {
          for (String p : params.getParameterDefinitionNames()) {
              paramList.add(p);
          }
      }
      

      As consequence, the following stack trace is launched and the instance of jenkins goes down

      Caused by: java.lang.NullPointerException\
          at hudson.model.ParametersDefinitionProperty$1.size(ParametersDefinitionProperty.java:105)\
          at java.util.AbstractList$Itr.hasNext(AbstractList.java:351)\
          at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:102)\
          at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:93)\
          at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:93)\
          at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:74)\
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                carlosrodlop Carlos Lopez
                Reporter:
                carlosrodlop Carlos Lopez
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: