SPR-5802 - NullPointerException when using @CookieValue annotation

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2544 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2009-11-30 10:16:14 +00:00
parent bc327a000e
commit 1d9da4191e
@@ -600,9 +600,12 @@ public class AnnotationMethodHandlerAdapter extends PortletContentGenerator impl
if (Cookie.class.isAssignableFrom(paramType)) {
return cookieValue;
}
else {
else if (cookieValue != null) {
return cookieValue.getValue();
}
else {
return null;
}
}
@Override