Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-1161

DefaultReactiveHashOperations.readHashValue might return null

    XMLWordPrintable

    Details

      Description

      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. 

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            OskarOlsson Oskar Olsson
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: