[JIRA] (JENKINS-15625) DownStreamProjectActionFactory throws a nullpointer exception
Tjaart van der Walt created JENKINS-15625 DownStreamProjectActionFactory throws a nullpointer exception Issue Type: Bug Affects Versions: current Assignee: shinodkm Attachments: jenkins.log Components: downstream-buildview Created: 25/Oct/12 9:38 AM Description: Please see our Jenkins run output in the attached file jenkins.log It seems some of our downstream projects are null (possibly because the project is disabled?) This causes the exception on line 61. Snippet from DownstreamProjectActionFactory: 52public Collection? extends Action createFor(@SuppressWarnings("unchecked") AbstractProject target) { 53LOG.fine(this + " adds DownStreamProjectAction for " + target); 54final ArrayListAction actions = new ArrayListAction(); 55 56 57// add the DownstreamBuildViewAction to all run builds, DownstreamBuildViewRunListener will append this to the others. 58final List? builds = (List?) target.getBuilds(); 59for (Object object : builds) { 60final AbstractBuild?, ? build = (AbstractBuild?, ?) object; 61final ListDownstreamBuildViewAction dBuildViewAction = build.getActions(DownstreamBuildViewAction.class); Project: Jenkins Priority: Minor Reporter: Tjaart van der Walt This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15625) DownStreamProjectActionFactory throws a nullpointer exception
Tjaart van der Walt updated JENKINS-15625 DownStreamProjectActionFactory throws a nullpointer exception Change By: Tjaart van der Walt (25/Oct/12 9:41 AM) Description: Pleasesee our the Jenkinsrunoutputintheattachedfilejenkins.logItseemssomeof our the downstreamprojectsarenull(possiblybecausetheprojectisdisabled?)Thiscausestheexceptiononline61.SnippetfromDownstreamProjectActionFactory:52publicCollection?extendsActioncreateFor(@SuppressWarnings(unchecked)AbstractProjecttarget){53LOG.fine(this+addsDownStreamProjectActionfor+target);54finalArrayListActionactions=newArrayListAction();555657//addtheDownstreamBuildViewActiontoallrunbuilds,DownstreamBuildViewRunListenerwillappendthistotheothers.58finalList?builds=(List?)target.getBuilds();59for(Objectobject:builds){60finalAbstractBuild?,?build=(AbstractBuild?,?)object;61finalListDownstreamBuildViewActiondBuildViewAction=build.getActions(DownstreamBuildViewAction.class); This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-15625) DownStreamProjectActionFactory throws a nullpointer exception
Tjaart van der Walt updated JENKINS-15625 DownStreamProjectActionFactory throws a nullpointer exception Change By: Tjaart van der Walt (25/Oct/12 9:42 AM) Description: PleaseseetheJenkinsrunoutputintheattachedfilejenkins.logItseemssomeofthedownstreamprojectsarenull(possiblybecause theprojectis theseprojectsare disabled?)Thiscausestheexceptiononline61.SnippetfromDownstreamProjectActionFactory:52publicCollection?extendsActioncreateFor(@SuppressWarnings(unchecked)AbstractProjecttarget){53LOG.fine(this+addsDownStreamProjectActionfor+target);54finalArrayListActionactions=newArrayListAction();555657//addtheDownstreamBuildViewActiontoallrunbuilds,DownstreamBuildViewRunListenerwillappendthistotheothers.58finalList?builds=(List?)target.getBuilds();59for(Objectobject:builds){60finalAbstractBuild?,?build=(AbstractBuild?,?)object;61finalListDownstreamBuildViewActiondBuildViewAction=build.getActions(DownstreamBuildViewAction.class); This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira