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

NullPointerException at java.util.Collections.addAll(Collections.java:5400)

XMLWordPrintable

       

       

      Sep 13, 2017 2:43:36 PM WARNING org.eclipse.jetty.util.log.JavaUtilLog warn
      Error while serving https://jenkins/jenkins/descriptorByName/com.orctom.jenkins.plugin.globalpostscript.GlobalPostScript/fillScriptItems
      java.lang.NullPointerException
       at java.util.Collections.addAll(Collections.java:5400)
       at com.orctom.jenkins.plugin.globalpostscript.GlobalPostScript$DescriptorImpl.doFillScriptItems(GlobalPostScript.java:258)
       at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
       at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      Caused: java.lang.reflect.InvocationTargetException
       at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
       at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
       at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)

       

      Affected line of the code:

      Collections.addAll(items, scriptFolder.list(filter));

       

      See: GlobalPostScript.java

            orctom Hao CHEN
            kenorb kenorb
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: