You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/08/16 14:17:43 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp XSPCookieHelper.java

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 [chris.newland@emorphia.com]
  
  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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org