paulsp 2002/07/09 09:33:14
Modified: webapp/WEB-INF/templates/jsp/portlets/html
JSP1_2andJetspeedTagLib.jsp
Log:
Fixed NPE when cookies are disabled by browser
Revision Changes Path
1.3 +6 -3
jakarta-jetspeed/webapp/WEB-INF/templates/jsp/portlets/html/JSP1_2andJetspeedTagLib.jsp
Index: JSP1_2andJetspeedTagLib.jsp
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/jsp/portlets/html/JSP1_2andJetspeedTagLib.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JSP1_2andJetspeedTagLib.jsp 23 Oct 2001 06:54:11 -0000 1.2
+++ JSP1_2andJetspeedTagLib.jsp 9 Jul 2002 16:33:14 -0000 1.3
@@ -250,9 +250,12 @@
</tr>
<%
Cookie[] cookies = request.getCookies();
-
- for (int i = 0; i < cookies.length; i++) {
- out.println("<tr><td>" + cookies[i].getName() + "</td><td>" +
cookies[i].getValue() + "</td></tr>");
+ if (cookies != null)
+ {
+ for (int i = 0; i < cookies.length; i++)
+ {
+ out.println("<tr><td>" + cookies[i].getName() + "</td><td>" +
cookies[i].getValue() + "</td></tr>");
+ }
}
%>
</table>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>