fixed NPE.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4814 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-09-19 18:34:12 +00:00
1 parent ef2e13bbf4
commit cec3132338
1 file changed
+3 -1
@@ -85,7 +85,9 @@ public class MatrixConfiguration extends Project<MatrixConfiguration,MatrixRun>
public FilePath getWorkspace() {
Node node = getLastBuiltOn();
if(node==null) node = Hudson.getInstance();
return node.getWorkspaceFor(getParent()).child(getCombination().toString('/','/'));
FilePath ws = node.getWorkspaceFor(getParent());
if(ws==null) return null;
return ws.child(getCombination().toString('/','/'));
}
@Override