bug fixed for httpRequest.getCookies() == null

This commit is contained in:
wenshao
2012-11-16 16:17:32 +08:00
parent c59312d546
commit 340a7a945e
@@ -265,7 +265,7 @@ public class WebStatFilter implements Filter {
return sessionValue.toString();
}
if (principalCookieName != null) {
if (principalCookieName != null && httpRequest.getCookies() != null) {
for (Cookie cookie : httpRequest.getCookies()) {
if (principalCookieName.equals(cookie.getName())) {
return cookie.getValue();