提交 67f5d86b 编写于 作者: K kohsuke

fixed NPE

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16481 71c3de6d-444a-0410-be80-ed276b4c234a
上级 737fe7e4
......@@ -26,6 +26,7 @@ package hudson.tasks.test;
import hudson.Launcher;
import hudson.Util;
import hudson.Extension;
import static hudson.Util.fixNull;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
......@@ -266,11 +267,11 @@ public class AggregatedTestResultPublisher extends Recorder {
return "/help/tasks/aggregate-test/help.html";
}
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter(fixEmpty=true) String value) {
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) {
// Require CONFIGURE permission on this project
if(!project.hasPermission(Item.CONFIGURE)) return FormValidation.ok();
for (String name : Util.tokenize(value, ",")) {
for (String name : Util.tokenize(fixNull(value), ",")) {
name = name.trim();
if(Hudson.getInstance().getItemByFullName(name)==null)
return FormValidation.error(hudson.tasks.Messages.BuildTrigger_NoSuchProject(name,AbstractProject.findNearest(name).getName()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册