diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html
index b3ef3fe3a..63efa5f0e 100644
--- a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html
+++ b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html
@@ -35,7 +35,7 @@
- <% if (client.clientDescription || client.clientUri || client.policyUri || client.tosUri || client.contacts) { %>
+ <% if (client.clientDescription || client.clientUri || client.policyUri || client.tosUri || client.contacts != null && client.contacts.length > 0) { %>
<%=client.clientDescription%>
<% if (client.clientUri || client.policyUri || client.tosUri || client.contacts) { %>
@@ -53,7 +53,7 @@
<% if (client.tosUri) { %>
Terms of Service: <%= client.tosUri %>
<% } %>
- <% if (client.contacts) { %>
+ <% if (client.contacts != null && client.contacts.length > 0) { %>
Administrative Contacts: <%= client.contacts.join(', ') %>
<% } %>
|