https://issues.apache.org/bugzilla/show_bug.cgi?id=45195
Summary: Possible regression issue with HttpSession.getAtttribute() Product: Tomcat 5 Version: 5.5.26 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Unknown AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We just upgraded from Tomcat 5.0.x to 5.5.26. In Tomcat 5.0.x, the following code returned NULL to obj: HttpSession session = request.getSession(true); Object obj = session.getAttribute(null); In Tomcat 5.5.26, that same code raises this exception: java.lang.NullPointerException java.util.Hashtable.get(Unknown Source) org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1024) org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:110) NewServlet.processRequest(NewServlet.java:29) NewServlet.doGet(NewServlet.java:52) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) I know how to code around it, but doesn't this qualify as a bug, at least for regression purposes? FYI: I'm using JDK 5. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]