Skip to content

MappingRedisConverter deserializes collections as nulls if it is empty #2298

Open
@Numbedme

Description

@Numbedme

Method readCollectionOrArray creates a collection, although if there are no keys it returns null, which seems kinda strange. Wouldn't it be more client-friendly to return an empty list?
For example:


@RedisHash("Entity")
public class Entity {
    @Id
    private long id;

    @Indexed
    private List<String> props;
}

props will be null on query if it was saved as an empty list

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions