Skip to content

Commit

Permalink
Defend against null AbstractFolder.primaryView (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Dec 4, 2024
2 parents 917eb99 + d3d9a27 commit 6edc0fc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<j:if test="${view == null}"> <!-- true when rendering from ModelObjectWithContextMenu.ContextMenu.from -->
<j:set var="view" value="${it.primaryView}"/>
<j:set var="primaryView" value="${it.primaryView}"/>
<j:if test="${primaryView != null}">
<j:if test="${view == null}"> <!-- true when rendering from ModelObjectWithContextMenu.ContextMenu.from -->
<j:set var="view" value="${primaryView}"/>
</j:if>
<st:include it="${primaryView}" page="sidepanel.jelly"/>
</j:if>
<st:include it="${it.primaryView}" page="sidepanel.jelly"/>
</j:jelly>

0 comments on commit 6edc0fc

Please sign in to comment.