cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp XSPCookieHelper.java
Date Thu, 16 Aug 2001 12:18:03 GMT
cziegeler    01/08/16 05:18:03

  Modified:    src/org/apache/cocoon/components/language/markup/xsp
                        XSPCookieHelper.java
  Log:
  Fixed NPE reported by Chris Newland [chris.newland@emorphia.com]
  
  Revision  Changes    Path
  1.4       +6 -6      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSPCookieHelper.java	2001/06/14 15:11:03	1.3
  +++ XSPCookieHelper.java	2001/08/16 12:18:03	1.4
  @@ -162,14 +162,14 @@
   
           Cookie[] cookies = request.getCookies();
   
  -        int count  = 0;
   
  -        String tempStr = null;
  -
  -        Hashtable nodeTable = new Hashtable();
  -
  -        if(cookies.length > 0)
  +        if(cookies != null && cookies.length > 0)
           {
  +            int count  = 0;
  +
  +            String tempStr = null;
  + 
  +            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


Mime
View raw message