cziegeler 01/08/16 05:17:43
Modified: src/org/apache/cocoon/components/language/markup/xsp Tag:
cocoon_20_branch XSPCookieHelper.java
Log:
Fixed NPE reported by Chris Newland [[EMAIL PROTECTED]]
Revision Changes Path
No revision
No revision
1.2.2.2 +5 -5
xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java
Index: XSPCookieHelper.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -r1.2.2.1 -r1.2.2.2
--- XSPCookieHelper.java 2001/06/14 15:11:34 1.2.2.1
+++ XSPCookieHelper.java 2001/08/16 12:17:43 1.2.2.2
@@ -162,14 +162,14 @@
Cookie[] cookies = request.getCookies();
- int count = 0;
- String tempStr = null;
+ if(cookies != null && cookies.length > 0)
+ {
+ int count = 0;
- Hashtable nodeTable = new Hashtable();
+ String tempStr = null;
- if(cookies.length > 0)
- {
+ Hashtable nodeTable = new Hashtable();
XSPObjectHelper.start(URI, PREFIX, contentHandler, "cookies");
for(count=0; count<cookies.length; count++)
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]