[FIXED HUDSON-3326] handle null axes in getLayouter(),

which can occur if build page is access right when build starts,
before axes field is initialized.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19017 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2009-06-17 23:10:13 +00:00
1 parent ce70052503
commit 161bfe3bbe
1 file changed
+2 -1
@@ -92,7 +92,8 @@ public class MatrixBuild extends AbstractBuild<MatrixProject,MatrixBuild> {
}
public Layouter<RunPtr> getLayouter() {
return new Layouter<RunPtr>(axes) {
// axes can be null if build page is access right when build starts
return axes == null ? null : new Layouter<RunPtr>(axes) {
protected RunPtr getT(Combination c) {
return new RunPtr(c);
}