提交 eb9f0b4f 编写于 作者: K kohsuke

fixed NPE.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8348 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3606d3d6
......@@ -203,7 +203,9 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* and so on exists.
*/
public FilePath getModuleRoot() {
return getScm().getModuleRoot(getWorkspace());
FilePath ws = getWorkspace();
if(ws==null) return null;
return getScm().getModuleRoot(ws);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册