If the memory leak occured in the ROOT application, display "/" instead on an empty...
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 17:29:57 +0000 (17:29 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 16 Feb 2010 17:29:57 +0000 (17:29 +0000)
It might be better to apply this fix to StandardHost.findReloadedContextMemoryLeaks(),
as it is equally hard to see an empty string when calling this method through JConsole,
but I am not sure that I want to introduce irregularity into the API.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@910612 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/manager/ManagerServlet.java

index 00fd10a..1146ee7 100644 (file)
@@ -513,6 +513,9 @@ public class ManagerServlet
             ((StandardHost) host).findReloadedContextMemoryLeaks();
         
         for (String result : results) {
+            if ("".equals(result)) {
+                result = "/";
+            }
             writer.println(result);
         }
     }