Skip to content

Nullability of RedisElementReader.read(…) contradicts non-nullability of Flux.map(…) #2655

Closed
@zhou-hao

Description

@zhou-hao

RedisElementReader.read allow return null,but ReactiveXXXOperations using Flux.map will result in The mapper [......] returned a null value. errors.

public Flux<V> members(K key) {
Assert.notNull(key, "Key must not be null");
return createFlux(connection -> connection.sMembers(rawKey(key)).map(this::readValue));
}

In my case, RedisElementReader.read well return null when illegal data format.

Is using .mapNotNull better ?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions