Skip to content

Commit

Permalink
Fix server-session-details NPE
Browse files Browse the repository at this point in the history
JSP resolvers are unable to resolve default properties on interfaces. NPEs were caused by the failure to resolve the new default methods on the ServerSession interface (e.g.  `ServerSession#isUsingServerDialback()`)

See this post for further details:

https://stackoverflow.com/questions/35130290/property-not-found-on-type-when-using-interface-default-methods-in-jsp-el
  • Loading branch information
viv committed Aug 7, 2023
1 parent 428b371 commit ff07c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmppserver/src/main/webapp/server-session-details.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@
</c:if>
<td nowrap>
<c:choose>
<c:when test="${session.usingServerDialback}">
<c:when test="${session.isUsingServerDialback()}">
<fmt:message key="server.session.details.dialback"/>
</c:when>
<c:when test="${session.usingSaslExternal}">
<c:when test="${session.isUsingSaslExternal()}">
<fmt:message key="server.session.details.tlsauth"/>
</c:when>
<c:otherwise>
Expand Down

0 comments on commit ff07c70

Please sign in to comment.