Skip to content

Commit

Permalink
[JENKINS-73554] fix jelly exception (jenkinsci#9519)
Browse files Browse the repository at this point in the history
ensure that we don't get an IndexOutOfBoundsException when the
controller has no executors on cloud pages
  • Loading branch information
mawinter69 authored Aug 9, 2024
1 parent 5acf535 commit 44d9158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/hudson/executors.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ THE SOFTWARE.
and !builtInHasExecutors)}"/>
<!-- Remove the built-in from the list when it is included but has no executors to show -->
<j:choose>
<j:when test="${!builtInHasExecutors and computers.get(0).node == app and computers.size() gt 1}">
<j:when test="${!builtInHasExecutors and computers.size() gt 1 and computers.get(0).node == app}">
<j:set var="computers" value="${computers.subList(1, computers.size())}"/>
</j:when>
</j:choose>
Expand Down

0 comments on commit 44d9158

Please sign in to comment.