-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Fixed NPEs in AntPathMatcher #943
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
Conversation
@rs017991 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
Thank you for the PR! Could you please create an issue for this pull request in the Spring Framework issue tracker. When you do, please make sure to fill the |
@rs017991 Thank you for signing the Contributor License Agreement! |
@rs017991 Could you change your added tests to not use underscore (_) in the method names? |
@rs017991, since quite a bit of time has passed since you submitted this PR, would you mind reworking your contribution on top of |
@sbrannen np |
I noticed that the MVC Test redirectedUrl matcher fails with a NullPointerException if there happens to be no Redirected URL on the response (the test should still fail, but with a proper assertion error).
One way to fix this would be to assertNotNull in the respective MockMvcResultMatchers method before calling the AntPathMatcher, but I thought it would be more appropriate to fix the underlying null-safety issues. You may disagree.