Mantis - Resin
Viewing Issue Advanced Details
4410 major always 02-25-11 12:49 02-28-11 15:27
brandonkearby  
ferg  
normal  
closed 4.0.15  
fixed  
none    
none 4.0.16  
0004410: NPE in AbstractHttpResponse.fillCookies
When the cookie value is null an NPE is thrown. See additional info for the fix.
Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/ [^]
brandonmac:trunk brandon$ svn diff
Index: modules/resin/src/com/caucho/server/http/AbstractHttpResponse.java
===================================================================
--- modules/resin/src/com/caucho/server/http/AbstractHttpResponse.java (revision 7912)
+++ modules/resin/src/com/caucho/server/http/AbstractHttpResponse.java (working copy)
@@ -844,7 +844,7 @@
     else {
       cb.append("=");
       String v = cookie.getValue();
- int len = v.length();
+ int len = v == null ? 0 : v.length();
       
       for (int i = 0; i < len; i++) {
         char ch = v.charAt(i);

Notes
(0005089)
ferg   
02-28-11 15:27   
server/01ea