Skip to content

Commit

Permalink
Prevent infinite recursion in Jenkins/sidepanel.jelly when `Jenkins…
Browse files Browse the repository at this point in the history
….primaryView` is null
  • Loading branch information
jglick committed Dec 3, 2024
1 parent c1a356b commit 810c4b4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ THE SOFTWARE.
-->

<?jelly escape-by-default='true'?>
<st:include it="${it.primaryView}" page="sidepanel.jelly" xmlns:st="jelly:stapler" />
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<j:set var="primaryView" value="${it.primaryView}"/>
<j:if test="${primaryView != null}">
<st:include it="${primaryView}" page="sidepanel.jelly"/>
</j:if>
</j:jelly>

0 comments on commit 810c4b4

Please sign in to comment.