Fix NPE when building a client with a query param with no values#192
Closed
jebeaudet wants to merge 1 commit intoOpenFeign:masterfrom
jebeaudet:master
Closed
Fix NPE when building a client with a query param with no values#192jebeaudet wants to merge 1 commit intoOpenFeign:masterfrom jebeaudet:master
jebeaudet wants to merge 1 commit intoOpenFeign:masterfrom
jebeaudet:master
Conversation
|
NetflixOSS » feign » feign-pull-requests #60 SUCCESS |
Contributor
|
Thanks for the help! Looks good. just might want to add a test in DefaultContractTest to ensure query w/o value continues to work later :) A couple small notes
The above Make sense? Thanks again! |
Contributor
|
Oh yeah and don't forget to update CHANGES.md for the next minor version of
7.x
|
Contributor
Author
|
Thanks for the tips! I'll close this one and reopen another from a different branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using feign-core 7.1.0, when creating a feign client with a query param with no values, the builder throws a NPE. I didn't want to include Apache CollectionsUtils so I just added a
nullcheck. Thanks for the great library btw, hope this PR is OK!TestApi.java:
Builder :
throws this stackstrace :