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

trigger upstream projects to watch not found triggers null pointer exception

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      1. Load /directive-generator/
      2. Directive: triggers
      3. Add: upstream
      4. For Projects to watch, enter a project that doesn't exist
      5. Click Generate Declarative Directive

      Actual results:

      java.lang.NullPointerException
      	at jenkins.triggers.ReverseBuildTrigger$DescriptorImpl.doCheckUpstreamProjects(ReverseBuildTrigger.java:215)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
      	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:537)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)
      Caused: javax.servlet.ServletException
       

            Unassigned Unassigned
            jsoref Josh Soref
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: