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

Instance doesn't start because of a NPE

XMLWordPrintable

      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)\
      

            carlosrodlop Carlos Rodríguez López
            carlosrodlop Carlos Rodríguez López
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: