RestTemplate does not handle null uri template parameters [SPR-7314] #11972
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
chris snow opened SPR-7314 and commented
I am trying to call a rest service that has an optional path parameter (areaId, below). Setting the optional path parameter to null causes a NPE (exception below). The implications of this are that I have to create a different version of the method call for each optional call parameter and use lots of conditional logic to check if parameter values are null to decide which method to use.
The exception is as follows:
The current workaround is below: This can get quite a burden for lots of optional parameters.
Affects: 3.0.2
Referenced from: commits 3160ddf
The text was updated successfully, but these errors were encountered: