Skip to content

DefaultReactiveHashOperations.readHashValue might return null [DATAREDIS-1161] #1736

@spring-projects-issues

Description

@spring-projects-issues

Oskar Olsson opened DATAREDIS-1161 and commented

This issue can be closed as the scenario I considered is not valid one. As mentioned in the comment, if the arg would be null the map would not be triggered. Returning null in this case should be fine as that scenario should not happen anyway.

-readHashValue in DefaultReactiveHashOperations returns null if passed as argument.-
-Since it is used in a map operator for get, null will result in following error:-
-java.lang.NullPointerException: The mapper returned a null value.-

-Possibly it would be better to return an empty mono in this case, unless there is a more standard way of handling this scenario.- 


Affects: 2.2.7 (Moore SR7)

Referenced from: pull request #538

Backported to: 2.3.1 (Neumann SR1), 2.2.8 (Moore SR8), 2.1.18 (Lovelace SR18)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions