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 13:39:17 GMT
cziegeler    01/08/16 06:39:17

  Modified:    src/org/apache/cocoon/components/language/markup/xsp Tag:
                        cocoon_20_branch XSPCookieHelper.java
  Log:
  Fixing NPEs reported by Chris Newland [chris.newland@emorphia.com]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.3   +3 -3      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.2
  retrieving revision 1.2.2.3
  diff -u -r1.2.2.2 -r1.2.2.3
  --- XSPCookieHelper.java	2001/08/16 12:17:43	1.2.2.2
  +++ XSPCookieHelper.java	2001/08/16 13:39:17	1.2.2.3
  @@ -258,7 +258,7 @@
   
           Cookie[] cookies = request.getCookies();
   
  -        if (retrieveByName)
  +        if (cookies != null && retrieveByName)
           {
               for(count=0; count<cookies.length; count++)
               {
  @@ -268,7 +268,7 @@
                       matchFound = true;
               }
           }
  -        else if(retrieveByIndex)
  +        else if(cookies != null && retrieveByIndex)
           {
               if(cookies.length > cookieIndex)
               {
  @@ -640,7 +640,7 @@
   
           Cookie[] cookies = request.getCookies();
   
  -        if (cookies.length > 0)
  +        if (cookies != null && cookies.length > 0)
           {
               if (retrieveByName)
               {
  
  
  

----------------------------------------------------------------------
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