SPR-5802 - NullPointerException when using @CookieValue annotation

This commit is contained in:
Arjen Poutsma
2009-11-30 10:16:14 +00:00
parent 73b54f4efe
commit 541aae12ef

View File

@@ -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