SPR-5802 - NullPointerException when using @CookieValue annotation
This commit is contained in:
parent
6403107c08
commit
1dc346a32c
|
|
@ -638,9 +638,12 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
||||||
if (Cookie.class.isAssignableFrom(paramType)) {
|
if (Cookie.class.isAssignableFrom(paramType)) {
|
||||||
return cookieValue;
|
return cookieValue;
|
||||||
}
|
}
|
||||||
else {
|
else if (cookieValue != null) {
|
||||||
return cookieValue.getValue();
|
return cookieValue.getValue();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue