mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for httpRequest.getCookies() == null
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user