Fix NPE on HttpServletRequest.logout() when debug logging is enabled.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1078412 13f79535-47bb-0310-9956-
ffa450edef68
Principal principal, String authType,
String username, String password) {
- if (log.isDebugEnabled())
- log.debug("Authenticated '" + principal.getName() + "' with type '"
- + authType + "'");
+ if (log.isDebugEnabled()) {
+ String name = (principal == null) ? "none" : principal.getName();
+ log.debug("Authenticated '" + name + "' with type '" + authType +
+ "'");
+ }
// Cache the authentication information in our request
request.setAuthType(authType);
Other
-->
<section name="Tomcat 7.0.11 (markt)">
+ <subsection name="Catalina">
+ <changelog>
+ <fix>
+ <bug>50855</bug>: Fix NPE on HttpServletRequest.logout() when debug
+ logging is enabled. (markt)
+ </fix>
+ </changelog>
+ </subsection>
<subsection name="Jasper">
<changelog>
<fix>