Skip to content

Commit

Permalink
fixing bug #10028 - avoiding NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasEYSSERIC committed Sep 10, 2018
1 parent 998c702 commit 407f6f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core-war/src/main/webapp/alertUserPeas/jsp/writeMessage.jsp
Expand Up @@ -37,6 +37,7 @@
<%@ page import="org.silverpeas.core.web.util.viewgenerator.html.buttons.Button" %>
<%@ page import="java.util.List" %>
<%@ page import="org.silverpeas.core.web.util.viewgenerator.html.browsebars.BrowseBarElement" %>
<%@ page import="org.silverpeas.core.util.CollectionUtil" %>

<%@ include file="check.jsp" %>

Expand Down Expand Up @@ -66,8 +67,10 @@
<%
browseBar.setDomainName(hostSpaceName);
browseBar.setComponentName(hostComponentName);
for (String pathItem : hostPath) {
browseBar.addElement(new BrowseBarElement(pathItem, null));
if (CollectionUtil.isNotEmpty(hostPath)) {
for (String pathItem : hostPath) {
browseBar.addElement(new BrowseBarElement(pathItem, null));
}
}
out.println(window.printBefore());
Expand Down

0 comments on commit 407f6f2

Please sign in to comment.