context path can be empty, so a better rendering is needed.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23429 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-11-03 00:18:56 +00:00
1 parent 65b3484e6c
commit e168daa5fc
1 file changed
+1 -1
@@ -127,7 +127,7 @@ public class DoubleLaunchChecker {
String contextPath="";
try {
Method m = ServletContext.class.getMethod("getContextPath");
contextPath=(String)m.invoke(h.servletContext);
contextPath=" contextPath=\""+m.invoke(h.servletContext)+"\"";
} catch (Exception e) {
// maybe running with Servlet 2.4
}