[FIXED JENKINS-33848] - Do not try to resolve empty strings in Items:fromNameList()
[FIXED JENKINS-33848] - Do not try to resolve empty strings in Items:fromNameList()

ReverseBuildTrigger autocompletes lists of jobs by delimiters when you select items, so sometimes you get the "Jib1, Job2, " in the form submission. Then ReverseBuildTrigger invokes Items::fromNameList() in order to resolve the dependency graph.

In this method Jenkins splits the string, trims it and then tries to resolve jobs. In such case an empty string is being passed to the resolution code. It may be unsafe since items (e.g. folders) may somehow override and mishandle the logic.

It would be useful to avoid such resolution attempts.

ikedam/jenkins,MarkEWaite/jenkins,fbelzunc/jenkins,christ66/jenkins,godfath3r/jenkins,stephenc/jenkins,tfennelly/jenkins,dennisjlee/jenkins,oleg-nenashev/jenkins,Vlatombe/jenkins,rsandell/jenkins,stephenc/jenkins,rlugojr/jenkins,ydubreuil/jenkins,damianszczepanik/jenkins,wuwen5/jenkins,MichaelPranovich/jenkins_sc,stephenc/jenkins,godfath3r/jenkins,bkmeneguello/jenkins,alvarolobato/jenkins,pjanouse/jenkins,ajshastri/jenkins,aldaris/jenkins,viqueen/jenkins,lilyJi/jenkins,patbos/jenkins,aldaris/jenkins,oleg-nenashev/jenkins,gitaccountforprashant/gittest,jglick/jenkins,amuniz/jenkins,NehemiahMi/jenkins,tangkun75/jenkins,godfath3r/jenkins,andresrc/jenkins,dennisjlee/jenkins,SebastienGllmt/jenkins,ydubreuil/jenkins,christ66/jenkins,alvarolobato/jenkins,rlugojr/jenkins,bpzhang/jenkins,gitaccountforprashant/gittest,samatdav/jenkins,escoem/jenkins,oleg-nenashev/jenkins,jglick/jenkins,Jochen-A-Fuerbacher/jenkins,amuniz/jenkins,alvarolobato/jenkins,vjuranek/jenkins,daniel-beck/jenkins,oleg-nenashev/jenkins,recena/jenkins,v1v/jenkins,DanielWeber/jenkins,damianszczepanik/jenkins,kohsuke/hudson,rlugojr/jenkins,hplatou/jenkins,pjanouse/jenkins,NehemiahMi/jenkins,SebastienGllmt/jenkins,v1v/jenkins,MichaelPranovich/jenkins_sc,pjanouse/jenkins,amuniz/jenkins,dennisjlee/jenkins,ikedam/jenkins,ydubreuil/jenkins,v1v/jenkins,Jochen-A-Fuerbacher/jenkins,jenkinsci/jenkins,NehemiahMi/jenkins,tangkun75/jenkins,ErikVerheul/jenkins,sathiya-mit/jenkins,gitaccountforprashant/gittest,aldaris/jenkins,dariver/jenkins,pjanouse/jenkins,patbos/jenkins,MarkEWaite/jenkins,Jimilian/jenkins,batmat/jenkins,kohsuke/hudson,sathiya-mit/jenkins,gitaccountforprashant/gittest,bpzhang/jenkins,samatdav/jenkins,protazy/jenkins,rlugojr/jenkins,azweb76/jenkins,patbos/jenkins,Jimilian/jenkins,escoem/jenkins,v1v/jenkins,ikedam/jenkins,tfennelly/jenkins,tangkun75/jenkins,sathiya-mit/jenkins,DanielWeber/jenkins,ErikVerheul/jenkins,jpbriend/jenkins,kohsuke/hudson,wuwen5/jenkins,MarkEWaite/jenkins,Ykus/jenkins,ErikVerheul/jenkins,vjuranek/jenkins,jenkinsci/jenkins,jglick/jenkins,pjanouse/jenkins,dariver/jenkins,tfennelly/jenkins,FarmGeek4Life/jenkins,ErikVerheul/jenkins,ErikVerheul/jenkins,stephenc/jenkins,kohsuke/hudson,godfath3r/jenkins,alvarolobato/jenkins,MarkEWaite/jenkins,jglick/jenkins,ajshastri/jenkins,Vlatombe/jenkins,christ66/jenkins,ndeloof/jenkins,pjanouse/jenkins,tfennelly/jenkins,pjanouse/jenkins,recena/jenkins,evernat/jenkins,ydubreuil/jenkins,rsandell/jenkins,ndeloof/jenkins,godfath3r/jenkins,hplatou/jenkins,SebastienGllmt/jenkins,bpzhang/jenkins,fbelzunc/jenkins,SebastienGllmt/jenkins,damianszczepanik/jenkins,amuniz/jenkins,aldaris/jenkins,viqueen/jenkins,vjuranek/jenkins,dariver/jenkins,gitaccountforprashant/gittest,Vlatombe/jenkins,recena/jenkins,evernat/jenkins,kohsuke/hudson,NehemiahMi/jenkins,Jochen-A-Fuerbacher/jenkins,FarmGeek4Life/jenkins,jpbriend/jenkins,FarmGeek4Life/jenkins,vjuranek/jenkins,daniel-beck/jenkins,FarmGeek4Life/jenkins,hplatou/jenkins,dennisjlee/jenkins,azweb76/jenkins,andresrc/jenkins,SebastienGllmt/jenkins,rsandell/jenkins,evernat/jenkins,tangkun75/jenkins,azweb76/jenkins,alvarolobato/jenkins,recena/jenkins,tfennelly/jenkins,Jochen-A-Fuerbacher/jenkins,bkmeneguello/jenkins,DanielWeber/jenkins,azweb76/jenkins,aldaris/jenkins,evernat/jenkins,MarkEWaite/jenkins,jpbriend/jenkins,ErikVerheul/jenkins,kohsuke/hudson,ndeloof/jenkins,jenkinsci/jenkins,recena/jenkins,Jimilian/jenkins,patbos/jenkins,kohsuke/hudson,Jimilian/jenkins,jpbriend/jenkins,DanielWeber/jenkins,ikedam/jenkins,tangkun75/jenkins,hplatou/jenkins,samatdav/jenkins,godfath3r/jenkins,damianszczepanik/jenkins,damianszczepanik/jenkins,NehemiahMi/jenkins,Ykus/jenkins,MichaelPranovich/jenkins_sc,aldaris/jenkins,patbos/jenkins,viqueen/jenkins,daniel-beck/jenkins,dariver/jenkins,DanielWeber/jenkins,escoem/jenkins,alvarolobato/jenkins,batmat/jenkins,damianszczepanik/jenkins,sathiya-mit/jenkins,olivergondza/jenkins,fbelzunc/jenkins,jenkinsci/jenkins,ErikVerheul/jenkins,NehemiahMi/jenkins,hplatou/jenkins,wuwen5/jenkins,lilyJi/jenkins,batmat/jenkins,MarkEWaite/jenkins,lilyJi/jenkins,daniel-beck/jenkins,andresrc/jenkins,viqueen/jenkins,oleg-nenashev/jenkins,sathiya-mit/jenkins,rsandell/jenkins,jpbriend/jenkins,ajshastri/jenkins,andresrc/jenkins,lilyJi/jenkins,varmenise/jenkins,alvarolobato/jenkins,damianszczepanik/jenkins,protazy/jenkins,SebastienGllmt/jenkins,batmat/jenkins,protazy/jenkins,dariver/jenkins,samatdav/jenkins,bkmeneguello/jenkins,varmenise/jenkins,jenkinsci/jenkins,MarkEWaite/jenkins,daniel-beck/jenkins,dariver/jenkins,samatdav/jenkins,MichaelPranovich/jenkins_sc,Ykus/jenkins,Ykus/jenkins,viqueen/jenkins,azweb76/jenkins,tfennelly/jenkins,SebastienGllmt/jenkins,Jimilian/jenkins,DanielWeber/jenkins,ajshastri/jenkins,sathiya-mit/jenkins,escoem/jenkins,Ykus/jenkins,v1v/jenkins,olivergondza/jenkins,amuniz/jenkins,protazy/jenkins,rsandell/jenkins,protazy/jenkins,vjuranek/jenkins,bkmeneguello/jenkins,MarkEWaite/jenkins,Vlatombe/jenkins,dennisjlee/jenkins,kohsuke/hudson,fbelzunc/jenkins,olivergondza/jenkins,olivergondza/jenkins,rlugojr/jenkins,jpbriend/jenkins,ydubreuil/jenkins,dariver/jenkins,evernat/jenkins,tangkun75/jenkins,varmenise/jenkins,lilyJi/jenkins,batmat/jenkins,samatdav/jenkins,fbelzunc/jenkins,tangkun75/jenkins,hplatou/jenkins,escoem/jenkins,batmat/jenkins,ndeloof/jenkins,Vlatombe/jenkins,wuwen5/jenkins,rlugojr/jenkins,aldaris/jenkins,bpzhang/jenkins,rlugojr/jenkins,hplatou/jenkins,bpzhang/jenkins,Vlatombe/jenkins,MichaelPranovich/jenkins_sc,azweb76/jenkins,christ66/jenkins,ajshastri/jenkins,bkmeneguello/jenkins,escoem/jenkins,fbelzunc/jenkins,v1v/jenkins,daniel-beck/jenkins,bpzhang/jenkins,protazy/jenkins,ikedam/jenkins,evernat/jenkins,wuwen5/jenkins,jenkinsci/jenkins,ajshastri/jenkins,daniel-beck/jenkins,fbelzunc/jenkins,protazy/jenkins,FarmGeek4Life/jenkins,stephenc/jenkins,wuwen5/jenkins,azweb76/jenkins,tfennelly/jenkins,jglick/jenkins,evernat/jenkins,FarmGeek4Life/jenkins,andresrc/jenkins,bkmeneguello/jenkins,ndeloof/jenkins,rsandell/jenkins,vjuranek/jenkins,olivergondza/jenkins,jenkinsci/jenkins,Jochen-A-Fuerbacher/jenkins,dennisjlee/jenkins,Ykus/jenkins,andresrc/jenkins,wuwen5/jenkins,DanielWeber/jenkins,Jimilian/jenkins,Vlatombe/jenkins,christ66/jenkins,viqueen/jenkins,recena/jenkins,andresrc/jenkins,dennisjlee/jenkins,stephenc/jenkins,Jimilian/jenkins,samatdav/jenkins,sathiya-mit/jenkins,olivergondza/jenkins,jglick/jenkins,christ66/jenkins,Ykus/jenkins,damianszczepanik/jenkins,oleg-nenashev/jenkins,NehemiahMi/jenkins,amuniz/jenkins,rsandell/jenkins,daniel-beck/jenkins,ndeloof/jenkins,godfath3r/jenkins,jpbriend/jenkins,escoem/jenkins,ydubreuil/jenkins,FarmGeek4Life/jenkins,oleg-nenashev/jenkins,jglick/jenkins,patbos/jenkins,olivergondza/jenkins,batmat/jenkins,varmenise/jenkins,recena/jenkins,ikedam/jenkins,ydubreuil/jenkins,ikedam/jenkins,patbos/jenkins,varmenise/jenkins,jenkinsci/jenkins,Jochen-A-Fuerbacher/jenkins,amuniz/jenkins,Jochen-A-Fuerbacher/jenkins,gitaccountforprashant/gittest,v1v/jenkins,rsandell/jenkins,ajshastri/jenkins,vjuranek/jenkins,bpzhang/jenkins,bkmeneguello/jenkins,christ66/jenkins,ikedam/jenkins,lilyJi/jenkins,varmenise/jenkins,MichaelPranovich/jenkins_sc,lilyJi/jenkins,MichaelPranovich/jenkins_sc,gitaccountforprashant/gittest,viqueen/jenkins,varmenise/jenkins,stephenc/jenkins,ndeloof/jenkins