提交 3edde026 编写于 作者: K kohsuke

[fixed] fixed NPE (issue #1523)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8389 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cced13e9
......@@ -593,7 +593,8 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
FilePath workspace = getWorkspace();
if (scm.requiresWorkspaceForPolling() && (workspace==null || !workspace.exists())) {
// workspace offline. build now, or nothing will ever be built
if(getAssignedLabel().isSelfLabel()) {
Label label = getAssignedLabel();
if(label!=null && label.isSelfLabel()) {
// if the build is fixed on a node, then attempting a build will do us
// no good. We should just wait for the slave to come back.
listener.getLogger().println(Messages.AbstractProject_NoWorkspace());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册