Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pathExtension null-safety in Kotlin DSLs #32254

Closed
sdeleuze opened this issue Feb 13, 2024 · 0 comments
Closed

Fix pathExtension null-safety in Kotlin DSLs #32254

sdeleuze opened this issue Feb 13, 2024 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@sdeleuze
Copy link
Contributor

pathExtension Predicate parameter is currently nullable on Java side because because UriUtils.extractFileExtension(request.path()) can return null, so it signature should be changed from (String) -> Boolean to (String?) -> Boolean on Kotlin side to avoid a NullPointerException when there is no extension.

@sdeleuze sdeleuze added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug labels Feb 13, 2024
@sdeleuze sdeleuze added this to the 6.1.4 milestone Feb 13, 2024
@sdeleuze sdeleuze self-assigned this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant