https://issues.apache.org/bugzilla/show_bug.cgi?id=57470
Bug ID: 57470 Summary: Occaisionally NPE in org.apache.catalina.connector.Response.addSessionCooki eInternal() Product: Tomcat 7 Version: 7.0.55 Hardware: PC OS: Linux Status: NEW Severity: minor Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: m...@mrobinson.ca Occaisionally I get an NPE in org.apache.catalina.connector.Response.addSessionCookieInternal():1008 Code at fault MimeHeaders headers = coyoteResponse.getMimeHeaders(); int n = headers.size(); for (int i = 0; i < n; i++) { 1008: if (headers.getName(i).toString().equals(headername)) { if (headers.getValue(i).toString().startsWith(startsWith)) { headers.getValue(i).setString(sb.toString()); set = true; } } } I could submit a patch that just aggressively checks for nulls but I'm not sure that is the correct solution. Some possible causes could be: 1. The value of headers.size() is changing. Which is bad since it would indicate some threading problems. 2. MessageBytes is somehow producing a null. It could be the type is unknown or the given chunk type is occaisionally returning null contents. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org