From 58c8a9393fbe31e4533343229603cae47723cc6e Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 13 Aug 2013 21:39:16 -0400 Subject: [PATCH] [FIXED JENKINS-19135] Permit a user to configure an axis with no values without throwing exceptions. The project cannot be usefully built in this case but at least they can go back and reconfigure it. Also fixing Layouter.Column to not throw NoSuchElementException (in violation of Iterator contract) and thus break project overview when there is an empty Axis in the trivial list (due to an unintentional IndexOutOfBoundsException). --- changelog.html | 3 +++ core/src/main/java/hudson/matrix/Axis.java | 5 +++-- core/src/main/java/hudson/matrix/Layouter.java | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.html b/changelog.html index 0dbcac118b..8c7f69a1d3 100644 --- a/changelog.html +++ b/changelog.html @@ -55,6 +55,9 @@ Upcoming changes