Console: Catch ISE in get/setAttribute() (ticket #1529)

This commit is contained in:
zzz
2018-07-28 19:03:01 +00:00
parent 63f0355680
commit b8437cd247
51 changed files with 113 additions and 64 deletions

View File

@@ -1,6 +1,11 @@
<%@page contentType="text/plain"
%><jsp:useBean id="helper" class="net.i2p.router.web.helpers.StatHelper"
/><jsp:setProperty name="helper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>"
/><%
String i2pcontextId = null;
try {
i2pcontextId = (String) session.getAttribute("i2pcontextId");
} catch (IllegalStateException ise) {}
%><jsp:setProperty name="helper" property="contextId" value="<%=i2pcontextId%>"
/><jsp:setProperty name="helper" property="peer" value="<%=net.i2p.data.DataHelper.stripHTML(request.getParameter(\"peer\"))%>"
/><% helper.storeWriter(out);
%><jsp:getProperty name="helper" property="profile" />