git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@763190
13f79535-47bb-0310-9956-
ffa450edef68
Container[] contexts = host.findChildren();
for (int i = 0; i < contexts.length; i++) {
Context context = (Context) contexts[i];
- String displayPath = context.getPath();
- if( displayPath.equals("") )
- displayPath = "/";
if (context != null ) {
+ String displayPath = context.getPath();
+ if( displayPath.equals("") )
+ displayPath = "/";
if (context.getAvailable()) {
writer.println(sm.getString("managerServlet.listitem",
displayPath,