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

NullPointer in DefaultRequestBodyUriSpec.cookies method [SPR-16178] #20726

Closed
spring-projects-issues opened this issue Nov 9, 2017 · 0 comments
Closed
Assignees
Labels
type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Nov 9, 2017

Anthony Bondarenko opened SPR-16178 and commented

Cookie map that is provided by DefaultRequestBodyUriSpec .cookies(...) consumer function is null

Example to reproduce NullPointerException:

this.webClient.get().uri("/users")
   .cookies(cookiesMap -> cookiesMap.put("k1", "v1"))
   .exchange()

NullPointer will be thrown at cookiesMap .put() method invocation as cookiesMap is null


Affects: 5.0.1

Referenced from: pull request #1590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug
Projects
None yet
Development

No branches or pull requests

2 participants