Fix NPE in Kotlin docs example

Closes gh-14634
This commit is contained in:
Steve Riesenberg 2024-03-26 12:10:09 -05:00
parent ba575e8564
commit 80845d0c9a
No known key found for this signature in database
GPG Key ID: 3D0169B18AB8F0A9
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ class SpaCsrfTokenRequestHandler : CsrfTokenRequestAttributeHandler() {
delegate.handle(request, response, csrfToken)
}
override fun resolveCsrfTokenValue(request: HttpServletRequest, csrfToken: CsrfToken): String {
override fun resolveCsrfTokenValue(request: HttpServletRequest, csrfToken: CsrfToken): String? {
/*
* If the request contains a request header, use CsrfTokenRequestAttributeHandler
* to resolve the CsrfToken. This applies when a single-page application includes