NPE in ClientRequest.attribute(name) when accessing null value [SPR-17486] #22018
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
João Eiras opened SPR-17486 and commented
Hi.
I have the following code
I also have a
exchangeFilter
registered in thewebClient
which looks up attribute "x". When callingclientRequest.attribute("x")
then I get a NPE.The solution in https://github.com/spring-projects/spring-framework/blob/master/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientRequest.java#L88
Thank you.
Affects: 5.0.10, 5.1 GA
Referenced from: commits 5382260, 818c2aa, d96a7b4
Backported to: 5.0.11
The text was updated successfully, but these errors were encountered: