mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user