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

DownStreamProjectActionFactory throws a nullpointer exception

XMLWordPrintable

      Please see the Jenkins run output in the attached file jenkins.log

      It seems some of the downstream projects are null (possibly because these projects are disabled?) This causes the exception on line 61.

      Snippet from DownstreamProjectActionFactory:
      --------------------------------------------
      52 public Collection<? extends Action> createFor(@SuppressWarnings("unchecked") AbstractProject target) {
      53 LOG.fine(this + " adds DownStreamProjectAction for " + target);
      54 final ArrayList<Action> actions = new ArrayList<Action>();
      55
      56
      57 // add the DownstreamBuildViewAction to all run builds, DownstreamBuildViewRunListener will append this to the others.
      58 final List<?> builds = (List<?>) target.getBuilds();
      59 for (Object object : builds) {
      60 final AbstractBuild<?, ?> build = (AbstractBuild<?, ?>) object;
      61 final List<DownstreamBuildViewAction> dBuildViewAction = build.getActions(DownstreamBuildViewAction.class);

        1. jenkins.log
          11 kB
          Tjaart van der Walt

            shinodkm shinodkm
            tjaart Tjaart van der Walt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: