SPR-5802 - NullPointerException when using @CookieValue annotation
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1349 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
1e33a96b4c
commit
1fe51d4a27
|
|
@ -638,9 +638,12 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
|||
if (Cookie.class.isAssignableFrom(paramType)) {
|
||||
return cookieValue;
|
||||
}
|
||||
else {
|
||||
else if (cookieValue != null) {
|
||||
return cookieValue.getValue();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue